JBoss Community

EJB3 - LobHelper from underlying Hibernate session

created by Pasquale Imbemba in EJB3 - View the full discussion

Hi,

 

I'm using JBoss 6.0.0. Final and EJB3.

I have an entity bean with has a field of type CLOB. From a helper class that instances a new entity bean, I'd like to convert from a domain object (Pojo) that holds a String to CLOB.

 

Hibernate.createClob(String string)

 

results deprecated as of Hibernate 3.6.0. The API suggests I use Hibernate's session to get a reference to the LobHelper, but how can I access a Hibernate Session from within a SLSB? Note that I call the helper class from the SLSB and could eventually pass Hibernate session as argument.

 

Thanks in advance!

~pasquale

Reply to this message by going to Community

Start a new discussion in EJB3 at Community