I believe you want to look into using a factory to create your cats.
You can inject DAOs and whatever you want into your factory.  The
factory would be a spring-managed bean, but the entities wouldn't.

On Wed, Mar 2, 2011 at 10:36 PM, ookpalm <[email protected]> wrote:
> Thanks everyone. I will go for using the new operator for my domain object
> since there is no simple way to inject and it is not really nescessary to
> inject bean to object in this case.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Hibernate-dao-tp3320134p3332713.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]
>
>

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

Reply via email to