This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 232571

Summary: named query doesn't sugest when i separate the query String in two lines
Product: javaee Reporter: montblack
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: print screen about the error

Description montblack 2013-07-11 15:05:36 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

named query doesnt sugest when i separate the query String in two lines for example 

@Entity
@NamedQueries({
    @NamedQuery(name = "Usuario.findByLogin", 
        query = "SELECT u FROM Usuario u "
        + "WHERE u.nombres = :nombres AND u.clave = :clave AND u.activo = TRUE"
        + " AND u.")
})
public class Usuario implements Serializable {


the last "u." doesnt sugest variables.
Comment 1 montblack 2013-07-11 15:13:30 UTC
+ attatch print screen
Comment 2 montblack 2013-07-11 15:14:18 UTC
Created attachment 137010 [details]
print screen about the error
Comment 3 Sergey Petrov 2013-07-11 19:54:11 UTC

*** This bug has been marked as a duplicate of bug 231925 ***