-->
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: business logic on one-to-many
PostPosted: Thu Jan 11, 2007 6:25 am 
Newbie

Joined: Sat Apr 29, 2006 9:52 am
Posts: 8
Hibernate version: 3.2

Hi everybody and happy new year (not to late ?)
Well I've got a tricky thing to do :

I've got two table T1 and T2, T2 has a FK on T1.
T2 contains dated values. But it contains only the changing values.
Exemple [ 00h00/250; 14h10/125; 22h30/250 ] like a RLE compression.
but we would like to work on non RLE compressed data. So when we do : T1.getT2s() (which is a one-to-many) we would like a list like :
[00h00/250; 00h10/250; 00h20/250; ... ; 14h10/125; 14h20/125 ...] => about 288 elements for a day

And of course I would like to give T1 to save to the DAOs and it saves only the changing values.

And to finish I'd like it to work in HQL too.

I've looked at UserType but it doesn't seam to be what I need.

Any idea ? am I dreaming about something impossible ? I'm sure we can do something intelligent for this in Hibernate !!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 4:49 am 
Newbie

Joined: Sat Apr 29, 2006 9:52 am
Posts: 8
No solutions ? I'm pretty sure it can be done in a nice way.


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.