[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1014) Generated entities error

Max Andersen (JIRA) jira-events at lists.jboss.org
Wed Oct 31 11:33:45 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1014?page=comments#action_12385320 ] 
            
Max Andersen commented on JBIDE-1014:
-------------------------------------

I created https://bugs.eclipse.org/bugs/show_bug.cgi?id=208249 for the broken validation there.

> Generated entities error
> ------------------------
>
>                 Key: JBIDE-1014
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1014
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam, UpStream
>    Affects Versions: 2.0.0.Beta4
>         Environment: RHDS 1.0.0 beta 2
> JDK 1.5.0_12
>            Reporter: Slava Litskevich
>         Assigned To: Max Andersen
>            Priority: Minor
>             Fix For: 2.0.0.CR1
>
>
> 1. Generate entities for the project using New -> Seam Generate Entities (Reverse Engineer from database)
> Entities are generated. There is an error message in the Problems section: Entity "Employee" has no Id or EmbeddedId	
> Employee entity has the following method:
> ...
>     public Employee(EmployeeId id) {
>        this.id = id;
>     }
>    
>      @EmbeddedId
>     
>     @AttributeOverrides( {
>         @AttributeOverride(name="id", column=@Column(name="ID", nullable=false) ), 
>         @AttributeOverride(name="name", column=@Column(name="NAME", nullable=false) ), 
>         @AttributeOverride(name="startDate", column=@Column(name="START_DATE", length=0) ) } )
>     @NotNull
>     public EmployeeId getId() {
>         return this.id;
>     }
> ...
> If I remove empty line in getId method annotations error message disappears:
>  
> ...
>      @EmbeddedId
>     @AttributeOverrides( {
>         @AttributeOverride(name="id", column=@Column(name="ID", nullable=false) ), 
>         @AttributeOverride(name="name", column=@Column(name="NAME", nullable=false) ), 
>         @AttributeOverride(name="startDate", column=@Column(name="START_DATE", length=0) ) } )
>     @NotNull
>     public EmployeeId getId() {
>         return this.id;
>     }
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list