-->
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.  [ 1 post ] 
Author Message
 Post subject: Mapping a Map<Entity,String> -> Entity.id is null
PostPosted: Thu Aug 02, 2007 5:53 am 
Newbie

Joined: Thu Aug 02, 2007 5:43 am
Posts: 1
Hi there!

I need some help regarding the following situation :

Hibernate version: 3.2.4.sp1

Mapping documents:


systemKonfiguration is a map<Anwendungssystem,String>

<map name="systemKonfigurationen" table="T_UEBERWACHUNGSTYP_SYSTEM" cascade="all" lazy="false">
<key column="UEBERWACHUNGSTYP_ID"></key>
<index-many-to-many class="Anwendungssystem" column="SYSTEM_ID" />
<element column="VALUE" type="string" length="20"></element>
</map>

All objects are stored perfectly with this mapping, but after retrieval from db, get an "Anwendungssystem" ( enhanced by CGLIB ), but without an assigned id! It has an id, but it is not set. Lazy loading is disabled, so why is the id not set?

Thanks a lot

Mirko


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.