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: @OneToMany targeting an unmapped class
PostPosted: Mon Dec 17, 2007 7:35 pm 
Newbie

Joined: Mon Dec 17, 2007 11:50 am
Posts: 14
Hi,

I have a class

@Entity
@Table(name="edges")
public class Edge implements Serializable {

static final long serialVersionUID = 1234567;

@Id
@GenericGenerator(name = "gen", strategy = "uuid")
@GeneratedValue(generator = "gen")
private String id;

private int priority;

private boolean stop;

@OneToMany(mappedBy="edges")
private List<Lane> lanes;

[...]

}

and another class

@Entity
@Table(name="lanes")
public class Lane implements Serializable {

[...]

}

However I receive an error

Use of @OneToMany or @ManyToMany targeting an unmapped class: model.db.data.Edge.lanes[model.db.data.Lane]

Anyone an idea, what could be wrong?


Top
 Profile  
 
 Post subject: SOLVED
PostPosted: Tue Dec 18, 2007 4:59 am 
Newbie

Joined: Mon Dec 17, 2007 11:50 am
Posts: 14
I solved it myself, stupid newbie mistake.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 20, 2008 2:28 pm 
Newbie

Joined: Thu Mar 20, 2008 10:39 am
Posts: 4
what is the issue ? I am also getting thsi error ?


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