Yes,
it was only the affeted paragraph.
The complete generated SQL ist:
Code:
Hibernate:
select
series0_.id as id8_,
series0_.ranking as ranking8_,
series0_.title as title8_,
series0_.is_caravan as is4_8_,
series0_.deleted as deleted8_,
series0_.simulated as simulated8_,
series0_.sys_user_id as sys7_8_
from
kotep.series series0_
where
series0_.id=?
Hibernate:
select
model0_.id as id5_,
model0_.title as title5_,
model0_.is_caravan as is3_5_,
model0_.deleted as deleted5_,
model0_.pic1 as pic5_5_,
model0_.pic2 as pic6_5_,
model0_.ranking as ranking5_,
model0_.series_id as series8_5_
from
kotep.model model0_
where
model0_.is_caravan=1
and model0_.deleted=0
and model0_.series_id=?
order by
model0_.ranking
Hibernate:
select
series0_.id as id8_0_,
series0_.ranking as ranking8_0_,
series0_.title as title8_0_,
series0_.is_caravan as is4_8_0_,
series0_.deleted as deleted8_0_,
series0_.simulated as simulated8_0_,
series0_.sys_user_id as sys7_8_0_
from
kotep.series series0_
where
series0_.id=?
Hibernate:
select
equipmentp0_.model_id as model3_1_,
equipmentp0_.text as text1_,
equipmentp0_.equipment_property_id as equipment1_1_,
equipmentp1_.id as id3_0_,
equipmentp1_.title as title3_0_,
equipmentp1_.ranking as ranking3_0_,
equipmentp1_.deleted as deleted3_0_,
equipmentp1_.is_caravan as is5_3_0_,
equipmentp1_.sys_user_id as sys6_3_0_
from
kotep.equipment_value equipmentp0_
left outer join
kotep.equipment_property equipmentp1_
on equipmentp0_.equipment_property_id=equipmentp1_.id
where
equipmentp0_.deleted=0
and equipmentp0_.model_id=?
2006-06-07 19:00:16,086 ERROR [http-8080-Processor25] java.lang.String: org.hibernate.exception.SQLGrammarException: could not initialize a collection: [mapping.Model.equipmentPropertyMany#188]
log4j:ERROR Failed to rename [kotep.log] to [kotep.log.2006-06-07_18-59].
2006-06-07 19:00:16,086 ERROR [http-8080-Processor25] java.lang.String: org.hibernate.exception.SQLGrammarException: could not initialize a collection: [mapping.Model.equipmentPropertyMany#188]
log4j:ERROR Failed to rename [kotep.log] to [kotep.log.2006-06-07_18-59].
2006-06-07 19:00:16,086 ERROR [http-8080-Processor25] java.lang.String: org.hibernate.exception.SQLGrammarException: could not initialize a collection: [mapping.Model.equipmentPropertyMany#188]
log4j:ERROR Failed to rename [kotep.log] to [kotep.log.2006-06-07_18-59].
2006-06-07 19:00:16,086 ERROR [http-8080-Processor25] java.lang.String: org.hibernate.exception.SQLGrammarException: could not initialize a collection: [mapping.Model.equipmentPropertyMany#188]
log4j:ERROR Failed to rename [kotep.log] to [kotep.log.2006-06-07_18-59].