[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-1471) If the 'generated' attribute is set to 'insert' or 'always' on the property of a component it is ignored and the value is not read from the database.

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Jan 19 08:02:45 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1471?page=all ]

Steve Ebersole updated HHH-1471:
--------------------------------

      Component: core
    Fix Version: 3.2.2
      Assign To: Steve Ebersole

> If the 'generated' attribute is set to 'insert' or 'always' on the property of a component it is ignored and the value is not read from the database.
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: HHH-1471
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1471
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.1.2
>     Reporter: Darran Lofthouse
>     Assignee: Steve Ebersole
>      Fix For: 3.2.2
>  Attachments: patch.txt
>
>
> If the 'generated' attribute is set to 'insert' or 'always' on the property of a component it is ignored and the value is not read from the database.
> Turning on debug logging shows no select statement being executed to retrieve the property.  Using the generated attribute in the parent class works fine.
> I have updated the existing ComponentTest test case so the Person class now has a username property that should be retrieved from the database with generated set to 'insert'.

-- 
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