It's not a silly question. Have you tried looking up your Manager in the StartupListener and using it to insert a row. It should work.
Matt On Tue, Sep 2, 2008 at 12:23 PM, Christy Ring <[EMAIL PROTECTED]> wrote: > Any help with this would be much appreciated, sorry if its a silly question. > > Christy Ring > [EMAIL PROTECTED] > > > On 1 Sep 2008, at 20:49, Christy Ring wrote: > > From the javadoc for StartupListener it states: > "Keep in mind that this listener is executed outside of > OpenSessionInViewFilter, so if you're using Hibernate you'll have to > explicitly initialize all loaded data at the Dao or service level to avoid > LazyInitializationException. Hibernate.initialize() works well for doing > this." > If possible could someone provide me an example of doing this. > In the contextInitialized I would like to insert a row into a db table using > one of my Entities. The entity was created from mvn > appfuse:gen -Dentity=Event > Thanks in advance, > Christy Ring > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
