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: is it possibile?
PostPosted: Tue May 10, 2005 11:39 am 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
Hibernate version:3rc2

Hi,

I have a class like this

Animals
(association) cat
(association) dog

how i can to do using, i think, alias that my groupProperty put value into
an cat.name?
Code:
.createAlias("dog", "k")
.add(Projections.groupProperty("k.name").as("name"))

Devis


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 12:27 pm 
Regular
Regular

Joined: Thu Feb 24, 2005 2:34 pm
Posts: 80
sorry the question it's a bit confused,

I have a class like this

Code:
Animals
  age
(association) cat  (id,name)
(association) dog (id,name)

.createAlias("cat", "k")
.add(Projections.groupProperty("k.name").as("name"))
.add(Projections.groupProperty("age").as("age"))




I wish that my alias put the value into cat property , in this examples,
cat.name, as "age" property

Sorry again
Devis


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.