-->
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: Object Search Code Generation
PostPosted: Sat Mar 18, 2006 7:31 am 
Beginner
Beginner

Joined: Mon Jan 24, 2005 11:56 am
Posts: 24
Hi,

We believe that hbm.xml files have a complete definition that contains all information which an application might need for accessing an object and find it in the database.
We think about a code-generation tool which simplifies searching for objects.
This tool generates some jsps and servlets from mapping files. When running these jsps, an html search form is displayed to the user, with all fields of the object.
For example, if there is an ‘Address’ object in the 'address.hbm.xml', the tool will generate an html form which has text boxes for ‘address line’, ‘zipcode’, ‘street name’ …. and a “search” button. User fills some textboxes and click on search button, a code-generated search result page is displayed to user.
This code generation tool can be more intelligent:

1)If an Address has a relation to city, the jsp form can show a list box of cities instead of a simple textbox.
2)The hbm.xml files can be marked to define, the fields that should be displayed in search form.
3) What do you think!

Is this tool available by now?
Do you think this tool can be developed and be useful?
I found that org.hibernate.metadata.ClassMetaData” can do a lot in this tool, do you think other hibernate classes can be used in this tool?

Regards,
Alireza Fattahi


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 19, 2006 2:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
There are options - Hibernate Tools and the Seam generatoras well as there was discussion etc on hbm2jsf , there was the older finder code generator where hbm2dao has some of these facilties. I am sure there are other options. For me the issue is maintaining the code base - asking Max to do it all is a little to much.


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.