Hi Matt,
Decision to not to suport "object being own identity"
and basically require "primary key" class was made
with Gavin on hibernate forum.
What you like to do is considered deprecated.
If you believe that there is error in xdoclet
generated files, please fill in support request in
xdoclet JIRA, and asign it to me - I will look to it.
regards,
---%<--------
I changed from a single primary key to a composite one
and now I get the three
rows I'm expecting:
<composite-id>
<key-property column="CCR_ID" length="22"
name="id" type="long"/>
<key-property column="FORM_ID" length="22"
name="formId" type="long"/>
<key-property column="SHEET_ID" length="22"
name="sheetId" type="long"/>
</composite-id>
<!--id
name="id"
column="ccr_id"
unsaved-value="null"
>
<generator class="sequence">
</generator>
</id-->
I'm using XDoclet to generate my mapping file, and
I've found a few issues
with generating the <composite-id> element, so I guess
I'll take my
generated-then-edited mapping file and put it back in
my source tree.
XDoclet supposedly supports the composite-id element
now, but from the
samples, it looks like you need a class to represent
the composite-id.
Secondly, it uses the hibernate-mapping.dtd, where the
above XML requires
hibernate-mapping-1.1.dtd.
Matt
---%<------------
=====
Konstantin Priblouda ( ko5tik ) Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving
your online business a competitive advantage. Test-drive a Thawte SSL
certificate - our easy online guide will show you how. Click here to get
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel