[jbosstools-issues] [JBoss JIRA] (JBIDE-4264) String field type should be considered as primary id candidate (now id candidate should be subclass of Number).

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Wed Jan 16 07:54:29 EST 2013


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

Max Rydahl Andersen commented on JBIDE-4264:
--------------------------------------------

This is for Generate Hibernate/JPA annotations.

if you have a class:

class MyEntity {

   String id;
   int number;
   String name;

}

then before String id; would not be suggested as primarykey - it would only allow types of subclass number.

But now String id; should be marked with @Id too.
                
> String field type should be considered as primary id candidate (now id candidate should be subclass of Number).
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-4264
>                 URL: https://issues.jboss.org/browse/JBIDE-4264
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: hibernate
>    Affects Versions: 3.1.0.M1
>            Reporter: Dmitry Geraskov
>            Assignee: Koen Aers
>            Priority: Minor
>             Fix For: 4.0.0.Alpha1
>
>
> CollectEntityInfo class collects information about selected java class. It considers field of java class as primiry id candidate if it has type of Number subclass. Also it should consider fields with type String.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list