[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools Documentation
max.andersen@jboss.com
do-not-reply at jboss.com
Fri Nov 9 18:53:10 EST 2007
"bdlink" wrote : After reading from Max (above) that we are to use Dali for persistence with JBoss tools
I did not say you have to - I just say it was an option.
We don't enable Dali by default because there are issues with Dali's default behavior (e.g. not knowing what the right default schema on dbs)
anonymous wrote :
| I tried using JPA with todays Jboss tools nightly build, after creating a seam-web project (with Seam 2). As near as I can figure, JPA only works in a JPA project. It does not appear to work with a Seam project with JPA aspect added (in the JPA structure window the message "Structure is not available for the current selection" when selecting a class which is to be bound to a database table). The Dali tutorial works but requires a JPA project.
|
Yes - so you need to enable the JPA facet. Can be done at creation time in the wizard or right click on the project and add the facet under the facet preferences.
anonymous wrote :
| The last messages sound like we should be using hibernate directly for generating Entities from DB tables.
|
I don't understand ? Just use Seam Generate Entities...(which will setup the proper Hibernate tools setup)
anonymous wrote :
| Using a seam entity does not seem to do anything useful, because the associated pages get out of synch when you edit the entity properties.
|
Yes - welcome to the land of codegeneration...
anonymous wrote :
| Perhaps more useful would be generating the other artifacts (Home, List, and pages) after the Entity has been generated.
|
So use Seam Generate Entities Wizard, but select "Use existing entities" instead of the "Reverse engineer from database"
anonymous wrote :
| Using seam-gen does not seem to work well, because it is all database tables or nothing, and gets the relationships wrong (not enough info in database schema to determine correct multiplicities and direction).
|
Yes - depending on what things you want to configure you can decide to use a .reveng.xml file to control these things very precise.
Over time we will make this more easily available. See Hibernate tools for the docs about these things.
anonymous wrote :
| After correcting the Entities you have to track down corrections in the other artifacts, since refactoring does not know about the dependencies.
|
try generating from the enttiies instead...
anonymous wrote :
| I noticed that the example JBoss tools documentation does not yet get past the front end to generating the entities.
|
Which example exactly ?
anonymous wrote :
| I am assuming/hoping that my confusion is simply due to a lack of documentation which will eventually be answered (or perhaps features which are not there but will be for GA), but I am still trying to figure the best way to do a simple application with a database that has multiple tables, with relationships.
Use Seam Generate Entities - but it is only something that generates the *basis* of an app.
anonymous wrote :
| I am trying to use JSF/Facelets/RichFaces/Seam2/EJB3/JAS4.2.2.
|
this is what the seam-gen/Wizards are targeted at.
anonymous wrote :
| Pointers to an end-to-end project would be useful (something more than a one-table CRUD example). If seam is the main focus of JBoss tools/RHDS, perhaps the examples in the Seam tutorial could be redone using these tools.
|
I don't recall any multi table examples in seam tutorial ? link ?
anonymous wrote :
| When JBoss Tools/RHDS really gets it together, it looks like it will be preferable to the NetBeans model which has the same architectural constraints that Sun Studio Creator had (each page has a backing bean that everything gets dumped into, etc.)
Yes - that is definitly not the way our tooling works - we belive in less constraints (but that also put some more responsiblity on to the programmer ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103388#4103388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103388
More information about the jboss-user
mailing list