[appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-27 Thread MarcelR
I try to use the Appfuse 2m5 core with a Swing UI instead of a web interface. For this generated a core app. (quick start) with a jpa-hibernate as ORM. I created a few testcases to test e.g. get(id) and getAll for the userDao. This works without any problems. Then when I use a Swing databinding

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-28 Thread MarcelR
FetchType to > EAGER. > > Matt > > On 6/27/07, MarcelR <[EMAIL PROTECTED]> wrote: >> >> I try to use the Appfuse 2m5 core with a Swing UI instead of a web >> interface. >> >> For this generated a core app. (quick start) with a jpa-hibernate as O

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread MarcelR
Yes, I had no problems in an Swing application where lazy loading was used in one single JVM (sun/jrockit). (That's what I want to use now as well with appfuse2.) Actually, I want to show database activity to the user and that's hard when lazy loading is used. http://www.oracle.com/technology/tec

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread MarcelR
ike with the transactions? mraible wrote: > > If you're not using a web framework, you should probably not use lazy > initialization. You can use Hibernate.initialize() on your POJO to > initialize all it's children. Either that, or change or FetchType to > EAGER. > >

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread MarcelR
k.org/docs/api/org/springframework/orm/hibernate/HibernateInterceptor.html > > Sanjiv > > On 6/29/07, MarcelR <[EMAIL PROTECTED]> wrote: >> >> >> Yes, I had no problems in an Swing application where lazy loading was >> used >> in >> one single JV

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread MarcelR
ringframework/orm/hibernate/HibernateInterceptor.html > > Sanjiv > > On 6/29/07, MarcelR <[EMAIL PROTECTED]> wrote: >> >> >> Yes, I had no problems in an Swing application where lazy loading was >> used >> in >> one single JVM (sun/jrockit). (Th

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-06-29 Thread MarcelR
what is closing these sessions, before all work is done.? Anybody any idea? MarcelR wrote: > > How do I get the sessionFactory within appfuse2? > Because that's the property HibernateInterceptor needs > > > Sanjiv Jivan wrote: >> >> So it appears you j

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-07-03 Thread MarcelR
everything works! So, I've a working version of my Swing application using appfuse-jpa-toplink! Meaby interresting to share it with the community? I can deliver it in a seperate thread Greetings, Marcel MarcelR wrote: > > Okay, I found a way of getting the SessionFactory and sta

Re: [appfuse-user] Appfuse Core + Swing: Session is closed

2007-07-04 Thread MarcelR
tz, Marcel fadhlirahim wrote: > > Hi Marcel, > > Please do share. I'm interested to know how you manage to fuse it with > swing. I did checkout spring rich client project but there's no solid > tutorial to start a project with it. > > On 7/4/07, MarcelR <[EMA

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-17 Thread MarcelR
I use: @Version private Timestamp changeDate; Standard in jpa (that I use most), don't know about hibernate Marcel Rob Hills wrote: > > Hi All, > > I'm using AppFuse 2.0 + Struts2 + Hibernate. > > I need to timestamp all of my persisted data. > > I have a base model cla