-->
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: map a java.util.Map with Embedded Entries
PostPosted: Mon Nov 07, 2005 8:06 am 
Beginner
Beginner

Joined: Fri Nov 21, 2003 4:50 am
Posts: 23
Hi,

is it possible to map a Collection Map with a Embeddable:


Code:
@Entity(access = AccessType.FIELD)
public class TestMap {
    @Column(name = "_id")
    @Id(generate = GeneratorType.AUTO)
    public long id;

    @OneToMany(targetEntity = TestEntry.class)
    @JoinTable(table = @Table(name = "TestMap"), joinColumns = {@JoinColumn(name = "_testId")})
    @MapKey(name = "key")
    public Map map;
}

@Embeddable
public class TestEntry {
    public String key;
    public String value;
}


This leads to a "Associated class not found" exception. Is there another simple approach to map a java.util.Map ?

We use Annotation Version 3.1beta6 and hibernate 3.1rc1

armin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 09, 2005 8:02 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
open a jira issue with a reunnable test case please

_________________
Emmanuel


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.