This content has been marked as final.
Show 4 replies
-
1. Re: Generate database table from Entity with seam-gen
tangzhen Mar 19, 2007 11:23 PM (in response to thejavafreak)thejavafreak
seam-gen is a new project making tools,it can creat a project ,project can creat a database table when you deploy it in jboss. -
2. Re: Generate database table from Entity with seam-gen
gavin.king Mar 19, 2007 11:37 PM (in response to thejavafreak)Are we able to create database table from Entity class with seam-gen?
Yes, of course. Answer "n" to do the tables already exist, or just edit persistence-dev.xml. -
3. Re: Generate database table from Entity with seam-gen
thejavafreak Mar 20, 2007 2:50 AM (in response to thejavafreak)
Yes, of course. Answer "n" to do the tables already exist, or just edit persistence-dev.xml.
Now I get what you mean. So the table will be automatically created by the JPA (in this case Hibernate) when the application starts. Is this correct? But this doesn't create the View too right ?
What I need is the other way around. I created the Entity class first, and then the View, *.page.xml, *Home class and *List class created automagically by seam-gen.
Would it be possible?
Thanks in advance -
4. Re: Generate database table from Entity with seam-gen
thejavafreak Mar 20, 2007 11:42 PM (in response to thejavafreak)Never mind.
It's already on the JIRA system
http://jira.jboss.com/jira/browse/JBSEAM-843
Thanks heaps :)