-->
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.  [ 3 posts ] 
Author Message
 Post subject: Custom SQL for loading or postLoadListener
PostPosted: Fri Apr 07, 2006 5:50 pm 
Newbie

Joined: Tue Sep 13, 2005 6:07 pm
Posts: 4
Hey Guys,

There is not much documentation on this. Here is what I want to do.

I have an object A, which contains a refrence to object B (and B contains a refrence back to A). When B is loaded, I have to call a custom SQL function to decrypt one of the columns, kinda like this

select pkga.r1decrypt_sf( col1), col2 from B

1) Should I do this by implementing a custom load SQL?
If so, The custom load sql has to be called, in the difinition of object b, correct? In the query how is object a loaded?

or
2) Should I implement a postLoadListener for object B?

thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 13, 2006 9:41 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Use formula on property.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 1:02 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
actually a UserType if you stuff is read/Write

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.