-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: xdoclet patch for hibernate3 (XDT-1257)
PostPosted: Tue Apr 05, 2005 11:57 am 
Newbie

Joined: Tue Apr 05, 2005 11:39 am
Posts: 5
I tried the XDoclet patch (XDT-1257) for Hibernate3.

My XDoclet mapping is:

* @hibernate.many-to-one
* class="com.some.Some"
* column="SOME_ID"
* unique="false"
* cascade="none"
* outer-join="auto"
* foreign-key = "some_fk"
* insert = "false" update = "false"

If I try to generate the hbm.xml file, the 'insert' and 'update' properties are missing. It works without the patch.

Can you help?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 7:55 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Thanks. Did you use the patch/jar or did you use the CVS version?

The CVS version is more complete. In anycase, I have not checked that versioning through the system is consistent as such this could happen.

When I get a moment I will have a look at it. Othewise you can help out if you have some time.

Should create a JIRA report (in XDoclet) JIRA and assign it to me (dchannon).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 06, 2005 8:38 am 
Newbie

Joined: Tue Apr 05, 2005 11:39 am
Posts: 5
I tried the patch-jar. I will try the CVS version...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 06, 2005 10:48 am 
Newbie

Joined: Tue Apr 05, 2005 11:39 am
Posts: 5
It works with the CVS version.
But there is still a small problem with the 'unique' attribute: it's duplicated in the generated hbm.xml file.
It would be great to have a new patch-jar in the xdoclet jira.

Thanks for your help :-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 06, 2005 8:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Glad it worked. Can you provide a very small example of the markup that duplicates the unique property?

I will upload another jar when I have a moment.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 4:32 am 
Newbie

Joined: Tue Apr 05, 2005 11:39 am
Posts: 5
* @hibernate.many-to-one
* class="com.some.Some"
* column="SOME_ID"
* foreign-key="some_fk"
* unique="false"
* outer-join="false"
* insert="false" update="false"
* cascade="none"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 07, 2005 9:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Thanks I will have a look see.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.