Hi all

Among the questions I had, one of the core questions is the following
one : is the architecture I plan to use appropriate ? Just to give a
bit of insight, I'm new to Hibernate/Spring and Wicket (ouch !). lol
But I'm really motivated :) I would like to be sure I don't do huge
mistake in my architecture... since I'm not an expert it could be the
case :(

I took it mainly from a Spring book (not an english one though). For
Wicket I user Pro Wicket.

So, my architecture is the following :
For each domains of my application, I've a manager, like the
UserManager. The managers contain the access to the DAO Interfaces
(which are properly injected by Spring) and render  pure Pojo "Model"
for my databased data (like an User object for the user info).

Behind all t his stuff, the transaction manager is
org.springframework.orm.hibernate3.HibernateTransactionManager and the
sessionFactory is
org.springframework.orm.hibernate3.LocalSessionFactoryBean.


Using injection, I've put an instance of my userManager in my BasePage.

>From it, where needed, I access the user info. For example, on login,
I call it to retrieve an user and put in my session.

For my pages, I use CompoundPropertyModel with the Pojo retrieve from
my managers (which are injected on demand excepted for the usermanager
which is always available as told before).

When I have to change an object on the "OnSubmit", I use the update
methods from my managers. What I fear here is to update some data
which have already been updated in between.

Overall, I'm wondering whether my implentation is "good enough" and
how to avoid "data collision".

What do you think of it ?

Thanks in advance
ZedroS

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to