-->
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: Same logical column name ....
PostPosted: Fri Jan 06, 2006 2:16 pm 
Newbie

Joined: Wed Dec 21, 2005 4:03 pm
Posts: 7
Location: Brazil - Fortaleza
I use hibernate end annotation. My bean :
[quote]
public void setId_material(final int material)
{
this.id_material = material;
}
@Column(name = "ID_MATERIAL", nullable = false, precision = 0)
@Id
public int getId_material()
{
return this.id_material;
}
[/quote]

These code above throws :
[list]
Exception in thread "main" org.hibernate.MappingException: Same logical column name referenced several times: Material.id_material Id_Material id_material
at org.hibernate.cfg.Mappings.addColumnBinding(Mappings.java:457)
at org.hibernate.cfg.Ejb3Column.addColumnBinding(Ejb3Column.java:257)
at org.hibernate.cfg.Ejb3Column.linkWithValue(Ejb3Column.java:250)
[/list]

where's the problem ??

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 2:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This might be a bug but you don't provide enough information

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