-->
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: Mapping Hibernate to API's
PostPosted: Tue Jun 08, 2004 7:44 am 
Newbie

Joined: Tue Jun 08, 2004 7:18 am
Posts: 3
I've got a application which provides access via java Apis. I wan't to map theses api to sorte of tables so I can use Hibernate. Is that possible ?


details :

I've got one database i can access whith jdbc, so with hibernate too, and elsewhere another database with a front end which I can access only by java apis ( no sql).

For any business transaction, I must write or read to both databases and synchronize the commits. I would like to map my first app to sort of tables, so that when I insert, delete or do whatever in these tables, hibernate calls the java apis underneath.

Does hibernate allows to do that ? If no, what other tools can I use ?


Thanks a lot


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 8:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Not possible with Hibernate, at least not without lots of custom developement. What else you can use, difficult to say without more details.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 8:41 am 
Newbie

Joined: Tue Jun 08, 2004 7:18 am
Posts: 3
Well,

last chance : let's imagine you have a table, and a special field in it which should be processed a special way. Can I put a sort of pre or post trigger a the hibernate level, not in the database level ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 8:52 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You could use a custom UserType most likely to do special handling of a certain property.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 8:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Last chance for what?

Yes. In 2.1.x use an Interceptor or UserType


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 08, 2004 9:29 am 
Newbie

Joined: Tue Jun 08, 2004 7:18 am
Posts: 3
Thanks to all.
I will follow your advices.


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.