-->
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.  [ 6 posts ] 
Author Message
 Post subject: is there any setting of genXDocletTag for hibernate tool 3
PostPosted: Wed Jul 27, 2005 11:21 pm 
Newbie

Joined: Wed Jul 27, 2005 11:13 pm
Posts: 10
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3

in middlegen, there is a setting to generate XDoclet markup for hbm2java,
but if use hibernate tool 3, all the generated java file the javadoc is null.

who can help me.

thanks~~~~


William


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 28, 2005 2:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use middlegen or contribute xdoclet generation to the current tool set.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 28, 2005 8:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I did not even consider XDoclet generation as an option for the Hibernate Tools since Annotations were the future focus. Since now XDoclet 1.2.x (to be 1.3.x) now has good support for H3 maybe this is worth looking at. I have a concern about maintaining it. Maybe I will have a look at it - time is (as usual) an issue though). In any case, a patch would be nice.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 2:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, its the maintanence part that can/will keep xdoclet out of the distribution ... but a wikipage with the template could be an alternative

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 2:47 am 
Newbie

Joined: Wed Jul 27, 2005 11:13 pm
Posts: 10
I mean, the javadoc in java mapping file is real usefully.
now I can't get it from hibernate 3 tool?
or I should use the template additional?

other way, how can I
"use middlegen or contribute xdoclet generation to the current tool set."?

thanks max,

regards,
William


javadoc eg:

/**
* @hibernate.property
* column="user_name"
* length="50"
* not-null="true"
*
*/
public String getUserName() {
return this.userName;
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 6:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Yes I kind of agree the documentation side of the coin is a bonus.
Answering your question:

1) Get the Middlegen source from CVS and build it (since I have not released a new version in a while). You can use the current release and change the DTD reference manually if you cannot build from the source.

2) Code up the patch for hibernate tools yourself since it does not exist.


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