[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7115) POJO isn't annotated by Generate Hibernate\JPA annotation according to docs

Jiri Peterka (JIRA) jira-events at lists.jboss.org
Wed Sep 22 09:35:28 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12552414#action_12552414 ] 

Jiri Peterka commented on JBIDE-7115:
-------------------------------------

Vitali,  pls look here : http://docs.jboss.org/tools/3.1.0.GA/en/hibernatetools/html_single/index.html

4.11. Hibernate:add JPA annotations refactoring
...
Using this wizard you can add the next Hibernate annotations to the class: @Column , @Entity , @ManyToOne , @OneToMany , @OneToOne , @ManyToMany , @MappedSuperclass , @Id , @GeneratedValue , @Version
      @Column is added to all String propertiee
When I create simple pojo with long id, String name, String surname I get 
@Entity
public class Customer {
	@Id
	@GeneratedValue
	long id;
	String name;
	String surname;
}
No String is annotated, I guess and according to doc it should be.


> POJO isn't annotated by Generate Hibernate\JPA annotation according to docs
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-7115
>                 URL: https://jira.jboss.org/browse/JBIDE-7115
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.2.0.M2
>         Environment: JBDS 4.0.0.m2 480
>            Reporter: Jiri Peterka
>            Assignee: Vitali Yemialyanchyk
>
> I've notice that Strings and possibly another fields are not annotated. According to documentation, String field should be annotated by @Column, etc. 

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

        


More information about the jbosstools-issues mailing list