-->
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: How solve Repeated column in mapping ...
PostPosted: Tue Dec 23, 2008 12:09 pm 
Newbie

Joined: Fri Jul 18, 2008 7:45 am
Posts: 6
I have two tables:

TAREA
{
idTarea,
usuario,
creadopor,
...
...
}

USUARIO
{
nif,
nombre
...
...
}

and usuario and creadopor are fk of usuario. How can I do the map? I receive the error

Repeated column in mapping for entity: ads.web.vo.Tarea column: USUARIO (should be mapped with insert="false" update="false")

But if I set insert and update to false, then nothing is written in the creadopor field when I create the item.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2008 12:18 pm 
Newbie

Joined: Fri Jul 18, 2008 7:45 am
Posts: 6
Solved, I had an error inthe column name...


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.