
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
04/Jan/06 09:24 AM
|
|
In order to use PersistenceManager.newInstance with the company model classes, we need to enable the setXXXId methods in the root classes. As it is right now, Person p = pm.newInstance(Person.class); p.setPersonId(5) results in IllegalStateException.
|
|
Description
|
In order to use PersistenceManager.newInstance with the company model classes, we need to enable the setXXXId methods in the root classes. As it is right now, Person p = pm.newInstance(Person.class); p.setPersonId(5) results in IllegalStateException. |
Show » |
|
This patch changes the setXXXId methods to throw IllegalStateException only if the id is already set.