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
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
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
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.
>
>
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
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
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
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
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
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
10 matches
Mail list logo