-->
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: How does the mapping file generation tool work?
PostPosted: Sun Oct 19, 2003 2:11 pm 
Newbie

Joined: Wed Oct 01, 2003 7:15 pm
Posts: 10
Hi,

The manual says the mapping file generation tool uses reflection to discover JavaBeans properties. How does the tool determine which properties are persisted?

Does this use the JavaBeans Introspector and BeanInfo?

thanks,
ryan


Top
 Profile  
 
 Post subject: Xdoclet
PostPosted: Sun Oct 19, 2003 6:14 pm 
Newbie

Joined: Sun Oct 12, 2003 9:53 pm
Posts: 13
Location: Buenos Aires, Argentina
An alternative for generating map files is xdoclet. I'm using it and I'm really happy, if you need any help on this I could give you some pointers.

having this in build.xml (with some tweaks) would do the job (get 1.2b3)
Code:
<target name="xdoclet.hibernatedoclet" description="run xdoclet to generate hibernate mapping files">
   <taskdef name="hibernatedoclet"
       classname="xdoclet.modules.hibernate.HibernateDocletTask"
       classpathref="lib.class.path"/>

   <hibernatedoclet
       destdir="${build.gen-src.dir}"
       excludedtags="@version,@author,@todo"
       force="${generated.forced}"
       mergedir="${build.gen-src.dir}"
       verbose="false">
   
       <fileset dir="src">
           <include name="**/hibernate/*.java"/>
       </fileset>
       <hibernate version="2.0"/>   
   </hibernatedoclet>



Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2003 5:20 pm 
Newbie

Joined: Wed Oct 01, 2003 7:15 pm
Posts: 10
Unfortuanately, I can't use xdoclet for this app because it requires specifying persistence semantics in the source code.

Users are allowed to write, compile, and load very simple JavaBeans within the running application, but asking them to write xdocklet tags is too much for novice users.


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.