-->
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 ... 5, 6, 7, 8, 9
Author Message
 Post subject: cvs source?
PostPosted: Mon Oct 17, 2005 3:00 pm 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
hey guys,

i've been poking around with ejb3/hibernate/seam/jsf... an hbm2jsf generator sounds like a great fit.

I'm interested in something less ambitious for now... generating facelet fragments for input/view of hibernate-annotated POJOs. Some validation tags would also be taken into account (mostly just the @Length or @Column (length = n) annotation to set the size of the rendered <input> tag. These fragments would then be edited and included inside templates...

I was wondering as to the status of this project, and if there's any code in CVS that I could check out...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 3:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
i've been poking around with ejb3/hibernate/seam/jsf... an hbm2jsf generator sounds like a great fit.


Right, we are working on this now.

Quote:
Some validation tags would also be taken into account


Max, I suppose Tools does not yet generate Hibernate Validator stuff. Could we add that to the TODO list?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 3:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what validator tags are relevant to automatically generate ?

put them in a jira issue and it will get in there at some point ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 4:09 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
gavin wrote:
Right, we are working on this now.


care to elaborate?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 4:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
he is referring to hbm2seam which includes jsf related generation.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 4:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
btw. just readup on validator and now i see which annotaitons which would make sense (basically just @NotNull and @Length for strings)

some im missing?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 4:44 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
why is integer not supported...?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 4:46 pm 
Hibernate Team
Hibernate Team

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

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 25, 2005 6:26 pm 
Beginner
Beginner

Joined: Sat Sep 17, 2005 10:41 am
Posts: 49
I can only hazard a guess, but maybe he means the @Min, @Max and @Range annotations, which can arguably be used to constrain the number of digits for a numeric input field...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 6:58 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
hello Max.

I noticed the code generation stuff has changed quite a bit in the last month or so. Can you please give me a high level idea about how this new design works before I dive back in?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 04, 2005 7:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - a month since i changed it; hardly remember it ;)

but generally AbstractExporter has more responsibility now (but you can of course do what you want in your concrete exporter, but try and play nice ;)

I added properties support, meaning that all exporters are handed in a properties set from which they should configure them self...this is a generic replacements/complement to the typesafe setters on the exporters (typesafe getters/setters should simply reflect its changes onto the properties set)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 4:50 am 
Newbie

Joined: Mon Jan 10, 2005 5:00 pm
Posts: 6
Hi,

I am searching for a way to generate a "simple" administrative interface base on the hibernate mapping (hbm) (struts-jsp, jsf-jsp, java-swing?). Is there a way to generate the "crud" code from the hbm (dao and JSP) ? I have clicked on the link http://hbm2jsf.dbyrne.net/ provided here, but it doesn't work now.

I have also found an interesting example from the Netbean site (for Netbean 5.5 beta: http://www.netbeans.org/kb/articles/hibernate-javaee.html, but it use EJB 3... I am affraid I will not be able to install a EJB 3 server on my production server now.

At first glance, it should be possible to create a Swing application (or web app) that take the HBM in parameter and give a full administration application on a database..? Nobody have build this apps yet?

Thanks

Etienne
Paris.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 11:33 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
Etienne ,

You are probably better off looking at the Hibernate tools documentation for "hbm2seam" .


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 ... 5, 6, 7, 8, 9

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.