[jira] Closed: (XDP-189) @hibernate.id - access="property" (default) generates bad hbm.xml
"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]>
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <82389736.1160378666845.JavaMail.haus-jira@codehaus01.managed.contegix.com> |
[ http://jira.codehaus.org/browse/XDP-189?page=all ]
Konstantin Pribluda closed XDP-189.
-----------------------------------
> @hibernate.id - access="property" (default) generates bad hbm.xml
> -----------------------------------------------------------------
>
> Key: XDP-189
> URL: http://jira.codehaus.org/browse/XDP-189
> Project: XDoclet 2 Plugins
> Issue Type: Bug
> Components: hibernate
> Affects Versions: 1.0.3
> Environment: Ant 1.6.5, Hibernate 3.1.3, WinXP, JDK 5.0 R6
> Reporter: Matthew R Harrah
> Fix For: 1.0.4
>
>
> The @hibernate.id tag when access="property" is specified either explicity or by default:
> /**
> * @hibernate.id generator-class = "native"
> */
> public long getAircraftId() {
> return aircraftId;
> }
> generates access="method" rather than access="property" in the .hbm.xml file:
> <id access="method" name="aircraftId">
> <generator class="native"/>
> </id>
> which does not work in Hibernate 2 or 3. The Hibernate spec says this value should be "field", "property", or a ClassName.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV