-->
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: Custom HQL functions?
PostPosted: Wed May 18, 2005 4:43 pm 
Newbie

Joined: Wed May 18, 2005 4:26 pm
Posts: 6
Currently I have a small table with 2 columns, ID(int) & ELEMENT_XPATH(varchar) I am trying to find some way that I can have an Integer value of 1 or 0 returned if the value of ELEMENT_XPATH is an encrypted string ( I have a DES utility class I would like to use ) without creating a new column in the table. I tried using a property & a custom UserType but that always seems to generate a SELECT clause for the non-existent column. I also created a get/set method for this in the POJO but without a property mapping I do not get access to the property via MAP or DOM4J entity modes.

Any help appreciated,

Matt.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 1:30 pm 
Regular
Regular

Joined: Tue May 24, 2005 10:19 am
Posts: 65
try use formula
see : http://www.hibernate.org/hib_docs/reference/en/html_single/#mapping-declaration-property


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.