max wrote:
I don't get why you thing Spring is useful for reverse engineering ? It doesn't do that ;)
Middlegen and Hibernate tools are the parts that does reverse engineering.
In any case your question is very broad and I can't really answer this with a simple forum posting. But let me try:
1) I would not look at XDoclet/Middlegen if you are starting a new project.
Look into EJB3/JPA instead and see how to use Java5 Annotations to avoid
alot of the code generation that was needed in the "old days" of xdoclet/j2ee1.4
2) MiddleGen and Hibernate tools does the reverse engineering.
Spring has nothing to do with this. MiddleGen is a general purpose reverse engineering tool which havent seen much maintanence the last couple of years. We (Hibernate team) maintain Hibernate Tools for doing Hibernate related reverse engineering.
3) Struts is a webframework, Spring is not. They can be used together.
Have you looked at JBoss Seam ?
4) There is no disadvantage. You get to use the Hibernate API directly (which is a good thing) and if you don't use reverse engineering you get to control how the mapping is done.
Thnx for you time Max, very helpful indeed ...
I went thru a tutorial Hibernate+Spring .. Would you say using hibernate & spring is good enough to develop Web Based appliations ...
This is what i've learned from the tutorial
1. Reverse Engineering (Code generation from existing tables) using Hibernate.. Very powerful indeed
2. Mapping of beans to with DB tables : Again hibernate
3. Persistence Layer (not sure but i think it means the changes happening on the table are directly mapped to the beans) .. Aigain, hibernate plays a role here
4. Now, The generation of the of beanname.hbm.xml is achieved using spring, am i'm correct
5. Also, the beanDAO is handled by Spring .
Otherwise please explain the use of Spring in my scenario ....
Thanx once more :)