-->
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.  [ 3 posts ] 
Author Message
 Post subject: Adding non xdoclet params
PostPosted: Wed Apr 26, 2006 10:27 am 
Newbie

Joined: Tue Apr 25, 2006 4:34 am
Posts: 11
Hibernate version:
3.1.3

(I'm working with the NetBeans 5.0 hibernate plug-in.)

"To add non XDoclet generator parameters, create a file named hibernate-generator-params-Apa.xml containing the additional parameters and place it in your merge dir", it says in my auto generated mapping file.



I dont really understand what that means.
Exactly what is it that im going to put inside the additional file. And which dir is the merge dir?



I want my final mapping file to look like this:

<generator class="foreign">
<param name="property">ko</param>
</generator>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 10:44 am 
Expert
Expert

Joined: Tue Apr 25, 2006 12:04 pm
Posts: 260
If XDoclet ant tasks are not generating mapping files for you in the required format, you may want to play with XDoclet as you can always edit the templates files(*.xdt) within the xdoclet-hibernate-module-1.2.3.jar file. I have done this 2 years before when I was first using hibernate and auto-generation of mapping files from ant tasks - dont know if it stills works.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 10:59 am 
Newbie

Joined: Fri May 05, 2006 9:58 am
Posts: 9
Location: Rennes
You may be use the following tag :

Code:
@hibernate.generator-param


with name="property"
and value="ko"

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.