-->
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.  [ 8 posts ] 
Author Message
 Post subject: Hibernate Console support for XDoclet
PostPosted: Sat Mar 25, 2006 1:58 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
Any plans to have Hibernate Console generate xdoclet annotations when generating the domain model from a schema? That would be really great.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 7:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I know Middlegen does it (as I coded it) and there has been some discussion about it for hibernate tools. It just a matter of sitting down and doing it. That person could be me - it could be you.

Thanks for the suggestion - it is likely to happen but I cannot say when.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 4:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
As David said, it is just a matter of someone stepping up and do it (and it won't be me; but I'll support anyone doing it)

btw. it has nothing to do with Hibernate Console (which is the querying/runtime plugin), this has to do with the hibernate tools core which has no dependencies *at all* with eclipse (people tend to think that, so just making a statement ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 9:22 am 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
Don't have much bandwidth at the moment, but I would like to give this a shot. Reviewed the pojo ftls and the POJOClasses. Reviewed the pattern for the current annotation support. Seems like it's a matter of creating methods in the POJOClasses to return the correct xdoclet syntax and creating templates to exercise those methods at the appropriate time.

It seems like it would make the most sense to treat xdoclet 1.2 and 2 separately. The reason I mentioned Hibernate Console was because of the check boxes for annotations for reverse engineering.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 9:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you seem to be on the right track.

even though I would probably prefer to put these methods (including some of the annotations stuff) on some other classes than to simply just grow bigger and bigger POJOClass.

thus adding something like pojo.getXDocLetGenerator() and then let XDocLetGenerator have all the stuff you need would be my simplest preffered thing.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 8:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Your correct - its not a big job just needs someone to sit down and do it.

We will help support your efforts.

BTW: I agree you will need to support Xdoclet 1.x and 2.x separately as there are markup differences.


Top
 Profile  
 
 Post subject: xdoclet support for model generation
PostPosted: Thu May 25, 2006 4:28 pm 
Regular
Regular

Joined: Mon Sep 29, 2003 9:39 am
Posts: 67
OK - I'm going to work on this. Just started. I'll knock out 1.2, and if it works out, move on to 2.0. I'll follow the aforementioned technique of using a getter method to extract the implementation of the xdoclet tags so it doesn't litter the base class.

What do you think of having an xdoclet interface that uses a factory which takes an xdoclet version? That would be easier to extend for future versions (say, 1.3 or 2.x if they are different)?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 4:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
just have a variable $xdoclet contain the version which you then can carry around.....but just assume that your XDocletFactoryWhatever knows about this when you call it.

_________________
Max
Don't forget to rate


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