-->
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.  [ 5 posts ] 
Author Message
 Post subject: Specifying values in mapping
PostPosted: Mon Nov 10, 2003 4:12 am 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
Just wondering if you can specify a column value in the mapping file for a class.

For example, say class A has a property class B. B has 2 columns for mapping
- realm
- itemKey

realm groups any mapping items so class A can be realm 'a', class C might be realm 'c'

So anyway to put the 'a' into the mapping doc for class A ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2003 4:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The documentation is very good. http://www.hibernate.org/hib_docs/reference/html/

and you can also read the DTD to check the finer details.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2003 2:07 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
Yes, but I can't find what i'm looking for, other than probably making a custom type, but that seems a bit too much for something so simple. Unless I am missing something or not sure what I'm looking for in the docs.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 16, 2003 6:56 pm 
Beginner
Beginner

Joined: Sat Aug 30, 2003 1:36 am
Posts: 47
Location: Calgary, AB
Anybody know if this is possible, like maybe something like this:

<property name="realm" equal-to="a"/>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 16, 2003 10:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
you can do it with a custom type - thats the only way.


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