-->
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.  [ 2 posts ] 
Author Message
 Post subject: Customizing Middlegen output
PostPosted: Wed Mar 03, 2004 2:36 pm 
Regular
Regular

Joined: Fri Nov 07, 2003 6:31 am
Posts: 104
Location: Beijing, China
Hi,

as far as I understood, David seems to be in charge of middlegen tool!
So my question is probably for him...

I've read I could customize the hbm.xml generation via a velocity file hibernate.vm. I can't find it! It's not in the distrib I got from SourceForge

I'd like to remove any length attribute generation (since i'm using a bottom-up approach and don't need it) and also to have the xml subelement generated on 1 line (and not one line per attribute) since my mappings becomes unreadable (to many fields in my tables...)
Plus some tweeking I haven't even thought of yet!

Where can I get this velocity file?
Will it allow me to do what I want?

thanks


Last edited by nodje on Tue Jun 03, 2008 5:41 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2004 7:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The suggested release you use is the r4 release for the moment unless you requre all of the pugins then use the offical v2.0(vo/final) release.

Using r4 as the example - you will find the hibenate.vm file inside the middlgen-hibernate-plugin Jar. Its located under the middlegen\plugins\hibernate package/directory structure. Unzip/unjar this lib and edit the vm file (eg remove the references to length) and then package it up again.


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