Hello there,
my EclipseLink tries to use the wrong
Column.
The details:
@Entity
@Table(name=”DBOBJECTS”)
@DiscriminatorColumn(name="CLASSNAME")
@Inheritance(strategy=InheritanceType.JOINED)
public class DBObjekt
.. some members ..
}
@Entity
@Table(name="USER")
@DiscriminatorValue(value="USER")
public class User
extends DBObjekt{
private String username;
}
@Entity
@Table(name="LOG")
public class Log{
@OneToOne(optional=true)
@JoinColumn(name="USERNAME",referencedColumnName="USERNAME",nullable=true,insertable=false)
private User user = null;
.. some members ..
Now the problem: If I try to persist a Log Entry EL throws a DescriptorException
because it‘s searching for the column DBOBJECTS.username but the
information is stored in USER.username. What’s wrong with my mapping?
Thanks for your help.
With kind regards
Steffen Förster
N+P Informationssysteme GmbH
Steffen Förster
Softwareentwicklung
An der Hohen Straße 1
08393 Meerane
Tel.: +49 3764 4000-0
Fax: +49 3764 4000-40
Geschäftsstelle Dresden
Tel.: +49 351 8471131-0
Geschäftsstelle München
Tel: +49 89 452298-30
Geschäftsstelle Nürnberg
Tel.: +49 911 72305-70
Geschäftsführer: Jens Hertwig
HRB 1746 Chemnitz
www.nupis.de
www.spartacus-fm.de