-->
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 foreign class with annotations
PostPosted: Tue Feb 01, 2011 11:05 am 
Newbie

Joined: Tue Feb 01, 2011 10:20 am
Posts: 1
Dear Users,

I have a problem by using a foreign class (Info) from a jar-library as a component within my class User.


public class User {

@Embedded
private Info info;

.....
....
}

When I start the Application, I'm getting the message:

'org.hibernate.HibernateException: Missing column: login in Table USER'

The problem is, that I only need quiet a few attributes of the class Info. I don't want to create neither a column login, because I don't need it. Nor I want to create an own Info class, because I need exact this one. Furthermore I'm not able to use @Transient and @Column in the class Info, because I haven't access to the sourcecode.


How let I hibernate know, that I don't need the attribut login. Can anybody help me?

Thanks,
Alex


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.