[Java lista] Hibernate + BigInteger ID + SEQUENCE
Szomor Attila
aszomor at computertechnika.hu
2010. Jan. 11., H, 08:50:24 CET
Sziasztok,
Azokank akik szintén próbálkoznának ezzel, csak a DB refaktor segíthet
(BigIntID -> LongID) a tapasztalataim szerint.
A usertype sequence nem segít, mert néhány belső keresésnél is long-nak
feltételezi az ID-t és így ezek sem járnak eredménnyel!
Remáljük a JPA2-es Hibernate is már kezelni fogja a BigInteger ID (a
64bites rendszerekben már illene).
Nekem a ScrollbaleCursor miatt lett volna csak rá szükségem azt az
EclipseLin 1.2 is tudja, így átzizzenek arra.
Attila.
Íme a log:
----------
[#|2010-01-08T13:59:56.878+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=18;_ThreadName=p:
thread-pool-1; w: 6;| tapreptapd11_.uid as uid58_10_,
placeuseru12_.id as id54_11_,
placeuseru12_.created as created54_11_,
placeuseru12_.daddn as daddn54_11_,
placeuseru12_.dcodu as dcodu54_11_,
placeuseru12_.dinic as dinic54_11_,
placeuseru12_.dnamu as dnamu54_11_,
placeuseru12_.docni as docni54_11_,
placeuseru12_.dpcsp as dpcsp54_11_,
placeuseru12_.dpcsu as dpcsu54_11_,
placeuseru12_.dtszu as dtszu54_11_,
placeuseru12_.modified as modified54_11_,
placeuseru12_.msznu as msznu54_11_,
placeuseru12_.psswu as psswu54_11_,
placeuseru12_.tglob as tglob54_11_,
placeuseru12_.trsta as trsta54_11_,
placeuseru12_.trsta_chltable_chltable_boss_trustee_id as
trsta21_54_11_,
placeuseru12_.trsto as trsto54_11_,
placeuseru12_.trsto_chltable_chltable_boss_trustee_id as
trsto22_54_11_,
placeuseru12_.uid as uid54_11_,
placeuseru12_.ujvny as ujvny54_11_,
placeuseru12_.usflg as usflg54_11_,
placeuseru12_.worku as worku54_11_
from
place_gro_p placegrop0_
left outer join
chltable_chltable chltablech1_
on placegrop0_.chltable_chltable_boos_grjel_id=chltablech1_.id
left outer join
chltable_chltable chltablech2_
on placegrop0_.chltable_chltable_boss_grmin_id=chltablech2_.id
left outer join
chltable_chltable chltablech3_
on placegrop0_.chltable_chltable_boss_grtip_id=chltablech3_.id
inner join
place_class placeclass4_
on placegrop0_.class_clagro_id=placeclass4_.id
left outer join
chltable_chltable chltablech5_
on placeclass4_.chltable_chltable_boss_ctype_id=chltablech5_.id
left outer join
place_intez placeintez6_
on placeclass4_.place_intez_id=placeintez6_.id
left outer join
place_useru placeuseru7_
on placeclass4_.place_useru_id=placeuseru7_.id
left outer join
chltable_chltable chltablech8_
on
placeuseru7_.trsta_chltable_chltable_boss_trustee_id=chltablech8_.id
left outer join
chltable_chltable chltablech9_
on
placeuseru7_.trsto_chltable_chltable_boss_trustee_id=chltablech9_.id
left outer join
place_intez placeintez10_
on placegrop0_.place_intez_id=placeintez10_.id
left outer join
taprep_tap_doc tapreptapd11_
on placegrop0_.taprep_tap_doc_id=tapreptapd11_.id
left outer join
place_useru placeuseru12_
on tapreptapd11_.place_useru_id=placeuseru12_.id
where
placegrop0_.id=?|#]
[#|2010-01-08T13:59:56.904+0100|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=18;_ThreadName=p:
thread-pool-1; w: 6;_RequestID=a7699cf6-ece6-44cd-b16e-e769f0a02297;|
------------------------
[ctMedikaPersistenceUnit] Fri Jan 08 13:59:56 CET 2010 [ERROR]
in com.ct.medika.persistence.units.PlaceGroJBean.getEntities():
Unable to find com.ct.medika.persistence.entities.PlaceGroP with id 606
------------------------|#]
További információk a(z) Javalist levelezőlistáról