[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2375) Persistence problems with Object relational mappings
bansi (JIRA)
noreply at atlassian.com
Mon Jan 22 13:57:44 EST 2007
Persistence problems with Object relational mappings
----------------------------------------------------
Key: HHH-2375
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2375
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.1.2
Environment: HSQLDB, MyEclipse 5.0, JSF , Spring
Reporter: bansi
Priority: Blocker
My web application uses
JSF 1.1.01 as Presentation Layer
Spring 1.2.6 as Business Layer
Hibernate 3.12 as Persistence Layer
The JSF form has
- One drop down which automatically populates the remaining textfields on the form
-One h:selectManyListbox which populates all the possible user Roles
- Add /Remove h:commandButtons
- One h:selectManyListbox which gets populated with selected user roles on click of Add button. This will work only if i set the scope to session in faces-config.xml
I have two POJOS i.e. DeviceType and Role. The relationship is uni-directional and Many-To-Many. That means DeviceType can have multiple Roles.
Expected Results :
If i persist DeviceType object then i expect the following insert statements to happen
1)insert into DeviceType(Id, Name, Desc) values(?,?,?)
2)insert into DeviceType_Roles(DeviceType_Id,Role_Id) values(?,?)
Please Note DeviceType object is associated with set of Roles
Observed Results :
2007-01-21 20:53:26,796 ERROR [org.hibernate.property.BasicPropertyAccessor] - <IllegalArgumentException in class: test.Role, getter method of property: id>
2007-01-21 20:53:26,796 WARN [test.TestBean] - <IllegalArgumentException occurred calling getter of test.Role.id; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of test.Role.id>
Here is my posting on Hibernate Forums : http://forum.hibernate.org/viewtopic...981&highlight=
Please Note I have read the Hibernate Documentation extensively & strictly followed the example . Nothing helps hence looks like its a Bug with Hibernate 3.1.2. Please note i am using hibernate 3.1.jar and hibernate-annotations.jar under Spring 1.2 ORM/DAO/Hibernate framework
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list