I used
Jboss tools within eclipse to create a new "Seam Web Project". When it was done, it created following 4 folders:
myproject
myproject-ear
myproject-ejb
myproject-test
I got them all directly under workspace without a common parent folder. There was no build.xml. But it was already deployed and I was able to republish it after making changes. It also picked my changes to xhtml files directly without redeploy.
On the other hand, one of my teammate created new project "from database"
using seamgen. The structure seamgen generated is more compatible with standard
j2ee projects structure. There is a common parent folder 'myproject'. myproject has a build file, src, dest, lib, view etc. folders. He's able to use
ant script file to build and deploy code. But his changes to .xhtml files are not picked by itself. My questions are:
1. Why in first case it generated a scattered structure with no common folder and why does it not match standard j2ee structure, why there is no build file?
2. How can I make it autodeploy changes to xhtml files in second case?
3. In second case, it also generated view, entity and session beans for each database table. Now if I add a new column to a database table (only one table), how can I update code "only for that table" in whole project? When I searched references to
java entity class for that table, it shows 65 matches in project. Am I supposed to make this change manually at 65 places or is there a better way to update code?
Hoping for quick reply
Thanks in advance
Varun