-->
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.  [ 133 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next
Author Message
 Post subject:
PostPosted: Fri Jul 29, 2005 11:24 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
Max, Christian – it sounds like you are saying the generator would be better off w/ the tools where it would produce hibtags, rather than co-exist w/ them? If so, is Max alright w/ introducing a dep?

I have started a feature matrix of similar apps …
http://hbm2jsf.dbyrne.net/features.xls


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 3:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what kind of dep ? it would just be generating stuff, that would not create a dependency....or ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 4:04 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
A faces.jar for testing. A "Hello World CRUD" demo app means the dist would need it as well. Then people think "this is middleware, why a web dep.?"

An out-of-the-box demo is vital. Think like a marketing person, not a programmer. Would you have responded to my thread if it had directed you to an offline code generator and a readme.txt ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 4:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eh - yes, I would have reacted. The online stuff I didn't even try because I could not download the source code and try to work with it - but that put aside ;)

And your dependencies makes sense, so no problem with me. Might be a separate download depending on what the demo app actually will contain. Maybe its simply just part of the tags project and not the tools ?

Lets look at that when we have something to integrate with.

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 4:37 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
OK, let's move towards defining "something". Here is what I'll commit myself to, w/ or w/out help.

A new ant task that generates the following from Configuration:
A JSF CRUD form for each POJO.
A JSF "Backing Bean" for each POJO.
A JSP form for each POJO so that user's can "browse" the DB using Serge's stuff.
A sample JSF config file.

Things that will be worried about later ...
Performance
Generating user input validation.
Generating a config file with navigation rules.
A dynamic CSS switch showing everyone how easy it is to customize the result.
A full blown working app
Labels ... translate Java terms into business terms.
A dynamic CRUD tag smart enough to manage any mapped class.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 4:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Hi,

All the stuff you have there fits well into the current tools.

Please hook the ant task into the <hibernatetool> etc.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2005 6:11 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Looks like a good start!


Top
 Profile  
 
 Post subject: Do you know of the appfuse project?
PostPosted: Tue Aug 02, 2005 8:12 am 
Newbie

Joined: Thu May 13, 2004 8:56 am
Posts: 9
Location: Cape Town, South Africa
Have any of you seen the "appfuse" project, specifically the "appgen" project in the "extras" directory - it takes hibernate pojo's, creates DAO interfaces, DAO implementation, struts (or spring, or jsf (I think)) servlet layer stuff, aswell as jsp's etc.

See: http://raibledesigns.com/wiki/Wiki.jsp?page=Articles


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 7:32 am 
Beginner
Beginner

Joined: Fri Apr 09, 2004 12:47 pm
Posts: 36
It seems to me no one mentioned trails in this thread (at least, I found no match with the forum search). It is inspired by Ruby on Rails, the Hibernate data model and a few annotations are the center of the application, everything else is dynamically generated. See:

https://trails.dev.java.net/
http://jroller.com/page/ccnelson/Weblog?catname=/Trails


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 11:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Not wanting to change the topic focus but I am a particular fan of Tapestry. Trails is a nice CRUD framework that employs Tapestry and Hibernate.
Having said that JSF is likely to be the main web framework as time goes on. Better get back to Tapestry/Hibernate application I am building ......


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 06, 2005 8:54 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
In the tools suite, there appears to be an ability to generate DAOs . I cannot find documentation for this at http://www.hibernate.org/hib_docs/tools/ant/index.html or at http://www.hibernate.org/hib_docs/tools ... index.html .

I would like to make the managed CRUD beans delegate work to these objects. Is this solid yet?

FYI, I've hooked an hbm2jsf task into hibernatetool . XSLT has been trashed and the following is generated via VLT for each class so far: a JSP listing of all classes, a JSF listing of all instances of a class, a crud form that can manipulate each instance. A deployment descriptor, a layout scheme, and faces configuration file are complete as well. I am basically done with the view.

Here's good article about these 2 technologies
http://wiki.apache.org/myfaces/HibernateAndMyFaces


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 7:27 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Actually, Gavin implemented the DAO generation without telling everyone :) I thought it was still the old finder generator technique. I've also written a DAO implementation that I find very nice and I'd say we should generate DAOs for JDK5 using this style. So there might be changes again in the tools wrt DAOs. You can find a discussion and a link to CVS in the CaveatEmptor forum in the thread "Generic DAOs".

Yes, your implementation should use the DAOs generated. I've got to look at Gavins stuff and see where we are going with this.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 1:34 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
David, yes, there are still a lot of Tapestry fans out there. I've split my JsfExporter into a WebExporter(parent) & and JsfExporter(child). This way someone else can make hbm2Tapestry, hbm2Shale, etc. Serge's stuff can be inherited because it won't need an MVC framework. They could share CSS.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 07, 2005 7:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Cool. Ill keep an eye on whats happening and maybe (just maybe) I will add the tapestry generator.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 09, 2005 12:49 pm 
Regular
Regular

Joined: Mon Jun 14, 2004 1:42 pm
Posts: 80
Location: Brazil
Well, I´m developing an open source application generator for hibernate that is based in the CRUD model. It uses metamodel to store the specification and generates metadata for hibernate, jsp pages and so on.
My Idea is be able to generate form the same metamodel different technologies (EJB 3 with JSF for instance). But the current version is limited to my spare time on the stable struts and hibernate 3.x series.

http://jtri.sourceforge.net/

If someone like/hate it, please post comments on the project page.

http://sourceforge.net/projects/jtri

_________________
Alexandre Torres
--------------------


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 133 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next

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.