We use JSF/Tomahawk + Hibernate + Squid as a front end cache. We moved from Sun's Creator/Rowset/JDBC approach due to an increasing level of complexity rowsets required for designing even moderately complex pages. Personally, I think an object data model provided by a persistence layer like Hibernate fits JSF much better than a rowset approach to managing data. The amount of reusable code we use has increased, we can be more agile in our approach to design because small changes in the database has very limited effects throughout the rest of the code, and the ability to make de-couple data objects and use tomahawks savestate tag and then re-couple the objects to the database later makes a very compelling argument as it greatly simplifies many of the CRUD operations our app requires.
When we moved to Hibernate, none of us had used it but it was well worth the effort. However, we found that we had to redesign most of the app -- actually a complete recode -- when moving from rowsets to Hibernate. This was a good lesson in learning the impact of early choices during systems design. Recommendation, take the time now to learn an object model such as Hibernate because it will cut down on future dev costs and you will end up with less code, more flexibility and a more portable app. Last but not least, we use MySQL 5 as our backend but one of our customers wants to host on MS Sql Server -- it took us about 2 hours to prove that we could port to Sql Server (changed only 4 queries which used date calculations) as Hibernate did the rest. -----Original Message----- From: Conway. Fintan (IT Solutions) [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 5:49 AM To: MyFaces Discussion Subject: RE: Need to use Spring Hi, I use JSF, but I do not use Spring at all in my applications. I use JDO to persist my objects to the database, but can use any database technology - including writing the JDBC code yourself, instead of Hibernate. The good thing about Java is that you have a wide choice as to what technologies to use. Spring, JPox (my choice of JDO technology), Hibernate, Ibatis and many, many more frameworks are available - if you want to use them. If you are learning one technology e.g. JSF, you may find it easier to not use any other frameworks until you are confident in that technology. Then you could look at adding another framework, e.g. JDO to store/retrieve data from the database. This way you are only looking at one new technology at a time. If you tried to start from scratch and learn 3 or 4 technologies at once you are bound to find yourself very confused. In short JSF does not require you to use any other technologies. HTH, Fintan -----Original Message----- From: 101questionjsf [mailto:[EMAIL PROTECTED] Sent: 05 May 2006 10:21 To: [email protected] Subject: Need to use Spring Currently I'm using JSF myfaces, do I need to use Spring + Hibernate? Find them quite complex to use... -- View this message in context: http://www.nabble.com/Need-to-use-Spring-t1562778.html#a4244067 Sent from the MyFaces - Users forum at Nabble.com. * ** *** ** * ** *** ** * ** *** ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB. If you have received this email in error please notify the sender. Although ESB scans e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. * ** *** ** * ** *** ** * ** *** ** *

