Oh thanks for the tip! I've corrected that now. :)

How do you inject Hibernate DAOs into your Spring Services using
annotations? Is that possible?
I also seem to be having some problems with the sessionFactory being inject
into the DAOs.

Any ideas?

Services are there now though, yay :)

On 25 November 2010 14:46, Mauro Ciancio [via Apache Wicket] <
[email protected]<ml-node%[email protected]>
> wrote:

> Hello,
>
> >    @SpringBean(name="userService")
> >    transient private UserService userService;
>
> Do not use injected beans as transient fields, because it will produce
> that the field is not serialized and thus the reference will be null
> after the page is hydrated.
>
> If you mark fields with @SpringBean, Wicket will automatically inject
> a serializable proxy that can be reconstructed after hydratation.
>
> HTH.
> Regards.
> --
> Mauro Ciancio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3059075&i=0>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=3059075&i=1>
>
>
>
> ------------------------------
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3059075.html
>
> To start a new topic under Apache Wicket, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from Apache Wicket, click 
> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1842946&code=YWRhbS5zLmdpYmJvbnNAZ21haWwuY29tfDE4NDI5NDZ8LTUzNzMyMDU4OQ==>.
>
>

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/need-help-with-spring-annotations-tp3058944p3059121.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to