2009-03-19 18:24:36,515 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
OBJECTVERSION, CONSTRUCTIONYEAR, HOUSENUMBER, EXTENSIONYEAR, VERSION,
OBJECTID, OBJECTSTATUS, EXEMPTADDRESSING, EASEMENTBUILDING,
MAINBUILDING, NONFREEHOLDPROPERTY, VERSIONVALIDFROM, VERSIONVALIDTO
FROM BUILDING_HIST WHERE (((OBJECTID = ?) AND ((ROW_START <= ?) AND
((ROW_END IS NULL) OR (ROW_END > ?)))) AND ((ROW_START <= ?) AND
((ROW_END IS NULL) OR (ROW_END > ?))))
bind
=> [0e8d5e65-4ae9-443c-b70a-670b27892a5c, 2009-03-19 18:24:35.0,
2009-03-19 18:24:35.0, 2009-03-19 18:24:35.0, 2009-03-19 18:24:35.0] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
2009-03-19 18:24:36,546 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
VERSIONVALIDFROM, VERSIONVALIDTO, BUILDING_ID FROM
REALPROPERTYREFERENCE WHERE (BUILDING_ID = ?)
bind
=> [1] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
2009-03-19 18:24:36,593 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
REALPROPERTYKEY, VERSIONVALIDFROM, VERSIONVALIDTO, LIESON_ID,
AFFECTEDBY_ID, BELONGSTO_ID FROM REALPROPERTYKEY WHERE (LIESON_ID = ?)
bind
=> [3] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
2009-03-19 18:24:36,625 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
OBJECTVERSION, CONSTRUCTIONYEAR, HOUSENUMBER, EXTENSIONYEAR, VERSION,
OBJECTID, OBJECTSTATUS, EXEMPTADDRESSING, EASEMENTBUILDING,
MAINBUILDING, NONFREEHOLDPROPERTY, VERSIONVALIDFROM, VERSIONVALIDTO
FROM BUILDING WHERE (ID = ?)
bind
=> [1] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
2009-03-19 18:24:36,656 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
VERSIONVALIDFROM, VERSIONVALIDTO, BUILDING_ID FROM
REALPROPERTYREFERENCE WHERE (BUILDING_ID = ?)
bind
=> [1] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
2009-03-19 18:24:36,687 [main] DEBUG [EL Fine]:
ClientSession(28329183)--Connection(24758223)--SELECT ID,
REALPROPERTYKEY, VERSIONVALIDFROM, VERSIONVALIDTO, LIESON_ID,
AFFECTEDBY_ID, BELONGSTO_ID FROM REALPROPERTYKEY WHERE (BELONGSTO_ID =
?)
bind
=> [3] at
se.lantmateriet.eclipselink.support.SLF4JSessionLogger.?(?:?)
It's first select goes for the right _HIST table, then all goes
wrong...
Mappings are defined like this:
@PrivateOwned
@OneToMany(cascade = CascadeType.ALL, mappedBy = "building")
private Collection<Remark> remarks = new
ArrayList<Remark>();
and on the other side:
@ManyToOne
@JoinColumn(nullable = false)
private Building building;
?