This content has been marked as final.
Show 3 replies
-
1. Re: Hibernate : insertion in DataBase with java code.
dustismo Aug 29, 2007 12:25 PM (in response to nemya)ChargeCollaborateuraffecteHome chargeCollaborateuraffecteHome = new ChargeCollaborateuraffecteHome() ;
is wrong, should be:ChargeCollaborateuraffecteHome chargeCollaborateuraffecteHome = (ChargeCollaborateuraffecteHome)Component.getInstance("chargeCollaborateuraffecteHome",true);
-Dustin -
2. Re: Hibernate : insertion in DataBase with java code.
nemya Aug 29, 2007 12:31 PM (in response to nemya)Component????
-
3. Re: Hibernate : insertion in DataBase with java code.
dustismo Aug 29, 2007 1:00 PM (in response to nemya)Yes, ChargeCollaborateuraffecteHome is a Component and needs to be initialized by Seam (i.e. you can't just do 'new ChargeCollaborateuraffecteHome()' and expect it to work). So you either inject the Component using @In or use org.jboss.seam.Component.getInstance