[jbosstools-issues] [JBoss JIRA] Assigned: (JBIDE-6188) Wrong automatic mapping for inner classes
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Mon Apr 19 10:57:49 EDT 2010
[ https://jira.jboss.org/jira/browse/JBIDE-6188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen reassigned JBIDE-6188:
------------------------------------------
Assignee: Dmitry Geraskov (was: Max Rydahl Andersen)
nothing to look at ?
> Wrong automatic mapping for inner classes
> -----------------------------------------
>
> Key: JBIDE-6188
> URL: https://jira.jboss.org/jira/browse/JBIDE-6188
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Hibernate
> Affects Versions: 3.1.0.GA
> Reporter: Dmitry Geraskov
> Assignee: Dmitry Geraskov
> Fix For: 3.1.1, 3.2.next
>
>
> New Hibernate Mapping file wizard add inner classes fields to root class fields and look for getter/setter in inner class.
> public class B {
> public static class Id implements Serializable {
> private Long categoryId;
> private Long itemId;
> }
> private Id id;
> ...
> }
> will create mapping:
> <hibernate-mapping>
> <class name="pack.B" table="B">
> <id name="id" type="pack.B$Id" access="field">
> <column name="ID" />
> <generator class="assigned" />
> </id>
> <property name="categoryId" type="java.lang.Long" access="field">
> <column name="CATEGORYID" />
> </property>
> <property name="itemId" type="java.lang.Long" access="field">
> <column name="ITEMID" />
> </property>
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list