db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-269) Change setId methods to allow construction of Company Model classes with default constructor
Date Tue, 03 Jan 2006 01:51:02 GMT
     [ http://issues.apache.org/jira/browse/JDO-269?page=all ]

Craig Russell updated JDO-269:
------------------------------

    Attachment: persistentinterfaces.patch

Please review this patch.

This patch changes the setXXXId methods to throw IllegalStateException only if the id is already
set.

> Change setId methods to allow construction of Company Model classes with default constructor
> --------------------------------------------------------------------------------------------
>
>          Key: JDO-269
>          URL: http://issues.apache.org/jira/browse/JDO-269
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Craig Russell
>     Assignee: Craig Russell
>  Attachments: persistentinterfaces.patch
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message