-->
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: 1.4.x compatible source code from eclipse plugin
PostPosted: Fri Nov 11, 2005 6:45 am 
Newbie

Joined: Fri Nov 11, 2005 6:39 am
Posts: 2
Hey,

I looked about for the answer to this question, but couldn't find much..

"How can I have the eclipse plugin generate jdk 1.4.x compatible source code for pojo's and dao's?"

I reckon that I can edit the velocity template daohome.vm, but I wondered if there was aproperty, or if I could use a "2" version of one of the tools to get the result I want.

Any ideas on this subject, including directions to the RTFM if you can show me where the relevant FM is, will be warmly welcomed.

TIA

d.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 7:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as far as i know we always generate 1.4 compatible code - if not submit a patch/bugreport.

we only generate 1.5 code if generics/ejb3 is enabled.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: 1.4.x compatible source code from eclipse plugin
PostPosted: Fri Nov 11, 2005 8:20 am 
Newbie

Joined: Fri Nov 11, 2005 6:39 am
Posts: 2
Nice to know, but sadly there are "import static"s in daohome.vm


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 11, 2005 8:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
should not be in 3.1 beta1 and definitly not in the cvs version.

...and if there is, fixable with a custom template.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: JDK 1.4 Compatiblity
PostPosted: Tue Nov 29, 2005 11:22 am 
Newbie

Joined: Tue Nov 29, 2005 11:20 am
Posts: 9
>>should not be in 3.1 beta1 and definitly not in the cvs version.
>>...and if there is, fixable with a custom template.

The latest plugin is generating code compatible ONLY to JDK5.0. Please provide a solution so that it works with JDK1.4. This is required urgently.

If not provide a detailed description as to how to create custom templates.

Thanks and Regards,
Hari


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 11:31 am 
Senior
Senior

Joined: Mon Apr 04, 2005 8:04 am
Posts: 128
Location: Manchester, NH USA
POJOs are 1.4 definitely compatible. I haven't tried the DAO generation so can't comment.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 11:35 am 
Newbie

Joined: Tue Nov 29, 2005 11:20 am
Posts: 9
Yes, the POJO's were 1.4 compatible. But the DAO's aren't. There are static imports present all over.

Can some one please explain ASAP, how to create custom templates for the DAO classes?

Regards,
Hari


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 12:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
find the dao/daohome.vm in the hibernate-tools.jar, put that file in a directory like mytemplates/dao/daohome.vm and use mytemplates as the template path and you can do your thing from there.

_________________
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.