-->
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: problems with @hibernate.map
PostPosted: Sun Sep 07, 2003 6:03 am 
hi!

there is one mystery left with hibernate:

@hibernate.map

the documentatin (hibernate_reference.pdf) gives some ideas of howto use this kind of relationship type but i would like to see some working samples. xDoclet samples would be very usefull. the xdoclet distribution samples don't show the use of hibernate.map :-(

what types do i need (or can i use) ?

* @hibernate.map
* @hibernate.collection-key column = "rechId"
* @hibernate.collection-index column = "docid" type = "???"
* @hibernate.collection-one-to-many class = "test.ListElement"

what are the posibilities for the key in a HashMap ?
and what can i put in as the HashMap value?

thanks for your help,
blip


Top
  
 
 Post subject:
PostPosted: Sun Sep 07, 2003 8:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Quote:
what are the posibilities for the key in a HashMap ?

the keys can be simple properties, composites, or entities.

Quote:
what can i put in as the HashMap value?

the values can be simple properties or entities (not sure about composites as I have not tried that).


This is an awfully open-ended question. Maybe you can give us the situtation you are trying to map, and we can help you figure out how to map it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2003 4:27 pm 
thank you for your help. i made some feature/performance and usability comparisons of:

- EJB 2.0 CMP
- Hibernate
- OJB (with JDO RI)

Hibernate is so easy to use (except the poor documentatin for xdoclet and relationships:-) has many many features and the the performance is very good.

and the winner is: HIBERNATE!


Top
  
 
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.