[
https://jira.jboss.org/browse/JBIDE-6188?page=com.atlassian.jira.plugin.s...
]
Jiri Peterka closed JBIDE-6188.
-------------------------------
Verified in JBDS 3.0.1 H68 and , JDK 1.5
Wrong automatic mapping for inner classes
-----------------------------------------
Key: JBIDE-6188
URL:
https://jira.jboss.org/browse/JBIDE-6188
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.1.0.GA
Reporter: Dmitry Geraskov
Assignee: Jiri Peterka
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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira