🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #143571

Re: hibernate mapowanie kluczy obcych xml

#143571
From: Jarek
Date: Sat, 10 Jan 2009 15:39
15 lines
1605 bytes
Po jednej stronie musisz dodać inverse="true"m np.:

<set name="listy" table="listy" lazy="true" inverse="true"
cascade="all">

W zasadzie wszystko jedno po której stronie to będzie.

Dodawanie osób do listy wygląda po prostu tak, że osobie do zbioru jej list 
dodajesz wybraną listę, a w tej liście do zbioru osób dodajesz osobę.
Przy masowych operacjach może się przydać to:
http://www.hibernate.org/hib_docs/reference/en/html/batch-direct.html

Pozdrawiam
Jarek
 
Technical Details
Message-ID: <gkafg2$hd6$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <gk4i5e$hou$1@atlantis.news.neostrada.pl> <gk632c$7lf$1@inews.gazeta.pl> <gk854t$jo1$1@nemesis.news.neostrada.pl> <gk86qe$91c$1@inews.gazeta.pl> <gk892b$pi2$1@nemesis.news.neostrada.pl> <gk8ath$2og$1@inews.gazeta.pl> <gk9seg$t59$1@atlantis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Jarek" <nie.ma@takiego.numeru>
Newsgroups: pl.comp.lang.java
Subject: Re: hibernate mapowanie kluczy obcych xml
Date: Sat, 10 Jan 2009 16:39:38 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 16
Message-ID: <gkafg2$hd6$1@inews.gazeta.pl>
References: <gk4i5e$hou$1@atlantis.news.neostrada.pl> <gk632c$7lf$1@inews.gazeta.pl> <gk854t$jo1$1@nemesis.news.neostrada.pl> <gk86qe$91c$1@inews.gazeta.pl> <gk892b$pi2$1@nemesis.news.neostrada.pl> <gk8ath$2og$1@inews.gazeta.pl> <gk9seg$t59$1@atlantis.news.neostrada.pl>
NNTP-Posting-Host: abcv157.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1231601987 17830 83.6.237.157 (10 Jan 2009 15:39:47 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sat, 10 Jan 2009 15:39:47 +0000 (UTC)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606
X-Priority: 3
X-Newsreader: Microsoft Windows Live Mail 12.0.1606
X-User: jbojar
X-MSMail-Priority: Normal
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit