[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-947) When generating @Version annotation reveng tools should provide ability to set @Generated(GenerationTime.ALWAYS) and insertable = false, updatable = false for @Column

Tonté Pouncil (JIRA) noreply at atlassian.com
Tue May 26 13:54:13 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33248#action_33248 ] 

Tonté Pouncil commented on HBX-947:
-----------------------------------

Out of curiosity, how do you specify the GenerationTime.ALWAYS annotation in the hbm.xml file?

Thanks!

> When generating @Version annotation reveng tools should provide ability to set @Generated(GenerationTime.ALWAYS) and insertable = false, updatable = false for @Column
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBX-947
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-947
>             Project: Hibernate Tools
>          Issue Type: Improvement
>          Components: hbm2java, hbm2seam, reverse-engineer
>    Affects Versions: 3.2beta9, 3.2beta10, 3.2LATER
>         Environment: all
>            Reporter: MG
>            Priority: Minor
>
> When generating @Version annotation reveng tools should provide ability to set @Generated(GenerationTime.ALWAYS) and insertable = false, updatable = false for @Column.
> This behavior sould be configurable via reveng file (I think)
> This is needed in case version or timestamp is maintained by DB and not hibernate. (Ex: sybase timestamp)
> hbm.xml have also similar constructs for that, so reveng into hbm.xml might be also impacted.
> Thanks

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