From: Konstantin P. <kpr...@ya...> - 2002-12-24 10:51:03
|
--- Gavin King <Gav...@ex...> wrote: > > > Current xdoclet stuff is not very intuitive. > > Please feel free to make improvements :) Doing this all the time :) I'm xdoclet committer :) > > For example it needs 3 tags to specify > > bag - hibernate.bag, > hibernate.collection-one-to-many > > & hibernate.collection-key ( and maybe about jca > cache > > ) - "this sux" (c) Burt Simpson :) > > Yeah I had felt that that was suboptimal myself. > There > is one thing it has going for it though: it reflects > the structure of the mapping DTD. Well, reflecting structure of DTD is a good thing. But since <bag> et al do need those one-to-may or many to many anyway... I'll think about improving it. > > > > > 3. strictly, you are supposed to call > > > session.flush() even after a > > > save(). In this very simple case you can get > away > > > with it but in > > > other cases, and when any other style of id > > > generation than > > > "native" is used, its needed. > > > > Well, already doing this. > > There was one spot it was missing. > > > > Otherwise, this is turning into a very useful > demo. > > > > Not yet. Updating customer with collection opf > > addresses does not work, also deleting... > > It works if everything is mapped correctly, esp. you > need to specify unsaved-value. Well, yesterday I got the demo to work correctly. I will upload this in half-hour as small cristmass gift :) Usual place: http://www.pribluda.de/hibernate-test.tar.gz regards, ===== Konstantin Priblouda ( ko5tik ) Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |