Hi!
On Feb 25, 11:33 pm, Craig Federighi <
craig.federi...@gmail.com>
wrote:
> Ariba's own (non-Hibernate, non-opensource) persistence framework does
> have these hooks.
>
And I guess you are planning on waiting another 10 years before
releasing it as OpenSource, you are such sadistic person... ;-)
>
> I don't see a problem with adding them to ObjectContext /
> HibernateContext (in metaui.persistence and metaui-jpa) -- we can make
> a pass through all to-be-committed objects and evaluate a class-level
> metaui "valid" property on them before proceeding with the save. (We
> can then automatically register metaui validation rules based on
> specific annotations in your POJO classes, so it could end up looking
> like validateForSave() in the degenerate case).
>
So.... It is fine for me to use Ariba's ObjectContext /
HibernateContext inside my POJOs? The risk of crazy behavior due to
Hibernate lazy loading peculiarities is very low? or plain non
existent? (or do you have particular set of recommendations to share
that prevent those crazy interactions, I do not remember the exact
problems, but Gavin King is always recommending against doing queries
inside your POJOs, so feel uneasy about doing it)
>
> (I'm not sure we will get to this for 5.0GA, but we can probably
> explore it shortly thereafter).
Please, please do so! And if you need any help testing it, count me
on.
Regards,