-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Hibernate application co-existence with a legacy application
PostPosted: Wed Oct 06, 2004 10:31 am 
Beginner
Beginner

Joined: Thu Sep 30, 2004 4:17 am
Posts: 21
Hibernate version:
2.1.4

We (are starting to) use Hibernate in an application that has to co-exist with its legacy counterpart. To describe further, we are writing an EJB-based application that accesses the legacy (Informix 7.24) database (updates, inserts, deletes, selects etc...). Also, the legacy application written in 4GL accesses the SAME database and does insert, update, delete, select etc...

Is there anything that I should be aware of while using Hibernate in this situation? If you can point me to the DO's and DONT's, it would be really helpful.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 6:45 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
If you use hibernate version (pesimistic locking) Tou wiil have problem because leagcy app don't update version, probably

regards


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
You mean *optimistic locking*.

Also be sure you understand the implications of using a second-level cache in this environment.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:13 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
yes , optimistic. I'm sorry


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 07, 2004 2:34 am 
Beginner
Beginner

Joined: Thu Sep 30, 2004 4:17 am
Posts: 21
gavin wrote:
You mean *optimistic locking*.

Also be sure you understand the implications of using a second-level cache in this environment.


1. Is second-level cache optional?

2. Is it off by default?

3. Can I control the 2nd level cache on a table-by-table basis? For example, if I want, can I turn it ON to only those tables which are not updated by the legacy app?

Regarding the versioning: Without adding the version column to the tables, is there another way to handle Optimistic Locking in hibernate? For example, load the data and compare before updating automatically? If so, can you point me to the right resource?

Sorry for asking too many questions. Hibernate has been making our life easier and don't want to get rid of it at this stage, just because we have to co-exist with the legacy application.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 07, 2004 6:14 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
1- yes
2- yes
3- just configure class by class

and i'll add
4- read reference guide and there are a lot of info about caching and lockink in hibernate in action

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.