-->
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.  [ 2 posts ] 
Author Message
 Post subject: Good match? Hibernate & Oracle Apps
PostPosted: Mon Oct 04, 2004 7:19 pm 
Newbie

Joined: Mon Oct 04, 2004 7:10 pm
Posts: 1
Our company uses Oracle Applications for all of its enterprise data (customers, orders, etc). I'm pretty new to Hibernate so please forgive the possible stupid newbie question.

Oracle Apps uses "interface" tables that are used when data is inserted. That is, clients would only insert data into these interface tables and not the "real" tables. So when adding a customer I would write an sql statement that inserts into a table like ra_customers_interface_all. Oracle then processes the data in this table and moves it to the appropriate table(s). When I need to go back and read data, I need to read it from one (or more) of these non-interface tables.

My question is basically....is Hibernate an appropriate solution for something like this considering I am inserting into one table yet reading from another? Additionally, in many cases, I would need to read from BOTH tables in order to aggregate the data into a single object. From what little I know of Hibernate to this point, it's mainly good at mapping objects/attributes to table columns but wouldn't handle a situation where it needs to read from a different location than where it inserted.

You thoughts are appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 05, 2004 2:23 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
map one object A to the "interface table" --> to read, write and modify it
map a second to "source table" B --> only for read, so declare it mutable = false

Also be carefull not to have one instance of A and the corresponding of B into the same hibernate session, you have to manage it well.

Don't use second level cache

_________________
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.  [ 2 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.