[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6188) Wrong automatic mapping for inner classes
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Thu Apr 15 04:17:26 EDT 2010
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.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