A couple of comments:

1. The collection-key tag should not specify a generator-class unless 
   you intended it to be toplevel, which I didn't think was supported
   by the XDoclet module and certainly won't be supported in Hibernate 
   2.0. It only really needs to specify a column attribute.

2. session.close() should be called in a finally block.

3. strictly, you are supposed to call session.flush() even after a 
   save(). In this very simple case you can get away with it but in
   other cases, and when any other style of id generation than
   "native" is used, its needed.

Otherwise, this is turning into a very useful demo.

Gavin


> -----Original Message-----
> From: Konstantin Priblouda [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 20 December 2002 12:35 AM
> To: xdoclet-devel
> Cc: hibernate-devel
> Subject: [Hibernate] New version of hibernate/xdoclet/jboss demo
> 
> 
> Hi all, 
> I compiled new ( and enhanced ) version of 
> my demo for hibernate/xdoclet/jboss
> 
> Now there are:
>  - 3 Entites: address, customer, country
>  - 1 : n relation ( customer has several addresses )
>  - relation address - country
> 
> you will need current CVS version of xdoclet hibernate
> module to run this. 
> 
> Small documentation is ontained in README.txt
> 
> regards,
> 
> =====
> 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: Geek Gift Procrastinating? Get the
perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
hibernate-devel mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


********** CAUTION - Disclaimer **********
This message may contain privileged and confidential
information. If you are not the intended recipient of this
message (or responsible for delivery of the message to
such person) you are hereby notified that any use,
dissemination, distribution or reproduction of this message
is prohibited. If you have received this message in error,
you should destroy it and kindly notify the sender by reply
e-mail. Please advise immediately if you or your employer
do not consent to Internet e-mail for messages of this kind.
Opinions, conclusions and other information in this
message that do not relate to the official business of
Expert Information Services Pty Ltd ("The Company")
shall be understood as neither given nor endorsed by it.

The Company advises that this e-mail and any attached
files should be scanned to detect viruses. The Company
accepts no liability for loss or damage (whether caused
by negligence or not) resulting from the use of any
attached files.
**EIS******** End of Disclaimer **********



-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to