<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>I can make IT &#187; Arbeit</title>
	<atom:link href="http://www.icanmakeit.de/category/real-life/arbeit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icanmakeit.de</link>
	<description>Hightech &#38; Lowlife</description>
	<lastBuildDate>Thu, 18 Aug 2011 09:08:29 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<copyright>Copyright © Hendrik Busch 2010, lizensiert unter Creative Commons Attribution-NonCommercial-ShareAlike 3.0 http://creativecommons.org/licenses/by-nc-sa/3.0/de/</copyright>
	<managingEditor>info@icanmakeit.de (Hendrik Busch)</managingEditor>
	<webMaster>info@icanmakeit.de (Hendrik Busch)</webMaster>
	<category>podcast</category>
	<ttl>1440</ttl>
	<image>
		<url>http://www.icanmakeit.de/media/feed-icon-blue-150x150.png</url>
		<title>I can make IT</title>
		<link>http://www.icanmakeit.de</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Hightech &#38; Lowlife</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Hendrik Busch</itunes:author>
	<itunes:owner>
		<itunes:name>Hendrik Busch</itunes:name>
		<itunes:email>info@icanmakeit.de</itunes:email>
	</itunes:owner>
	<itunes:block>yes</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.icanmakeit.de/media/feed-icon-blue-300x300.png" />
		<item>
		<title>Wie man sich bettet&#8230;</title>
		<link>http://www.icanmakeit.de/2011/01/18/wie-man-sich-bettet/</link>
		<comments>http://www.icanmakeit.de/2011/01/18/wie-man-sich-bettet/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 20:58:14 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[dienstreise]]></category>
		<category><![CDATA[hotel]]></category>
		<category><![CDATA[Hotelzimmer]]></category>
		<category><![CDATA[zimmer]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/?p=598</guid>
		<description><![CDATA[Eigentlich blogge ich ja nicht über die Arbeit &#8211; aber da ich heute auf Dienstreise bin und etwas Zeit habe, mache ich heute mal eine Ausnahme, zumindest in gewisser Hinsicht. Ich sitze zur Zeit in dem wohl schlechtesten Hotelzimmer, in dem ich dienstlich je untergebracht war &#8211; und das sage ich nicht nur, weil ich [...]]]></description>
			<content:encoded><![CDATA[<p>Eigentlich blogge ich ja nicht über die Arbeit &#8211; aber da ich heute auf Dienstreise bin und etwas Zeit habe, mache ich heute mal eine Ausnahme, zumindest in gewisser Hinsicht.</p>
<p>Ich sitze zur Zeit in dem wohl schlechtesten Hotelzimmer, in dem ich dienstlich je untergebracht war &#8211; und das sage ich nicht nur, weil ich am Wochenende noch in einem 5-Sterne-Superior-Hotel &#8220;residieren&#8221; durfte.</p>
<p>Es fängt an mit dem schiefen Bild an der Wand. Interessant ist auch die Beleuchtung: neben der kleinen Deckenlampe, die direkt hinter der Tür angebracht ist, gibt es keine. Die Zusatzbeleuchtung erbringt ein Deckenfluter, dessen Dimmer aber defekt ist und den ich daher nur durch Rausziehen des Steckers abschalten kann.</p>
<p>Das schummerige Licht ist aber vielleicht auch Absicht, dann sehe ich nicht so viel von der Einrichtung, die mein Hotelzimmer wie das Behandlungszimmer eines Arztes in den 90er-Jahren aussehen lässt. In einem der Nachttische ist ein Radio eingebaut, dass sogar auf ein noch höheres Alter der Einrichtung schließen lässt &#8211; und das Radio funktioniert nicht mal.</p>
<p>Dann wären da noch Flecken auf dem Bett, die Schubladenfront die abfiel, als ich die Schublade aufmachen wollte, die Staubschicht auf der Nachttischlampe oder mein Favorit: der große Spiegel an der Wand, vor dem aber leider der Fernseher (echte Grundig-Röhre aus den 90ern) steht.</p>
<p>Immerhin ist die Bettwäsche frisch und vermutlich auch gekocht, so dass ich mir da wenigstens keine Sorgen machen muss. Gute Nacht!</p>
<p>Nachtrag: Bevor das jemand falsch versteht: ich machen denjenigen, die das Hotel gebucht haben, keinerlei Vorwürfe. Sowas ist eigentlich nicht vorher zu sehen. Genauso wenig werde ich den Namen oder die Stadt des Hotels nennen.</p>

	Tags: <a href="http://www.icanmakeit.de/tag/dienstreise/" title="dienstreise" rel="tag">dienstreise</a>, <a href="http://www.icanmakeit.de/tag/hotel/" title="hotel" rel="tag">hotel</a>, <a href="http://www.icanmakeit.de/tag/hotelzimmer/" title="Hotelzimmer" rel="tag">Hotelzimmer</a>, <a href="http://www.icanmakeit.de/tag/zimmer/" title="zimmer" rel="tag">zimmer</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2011/01/18/wie-man-sich-bettet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Warum Hartz IV nicht abgeschafft wird</title>
		<link>http://www.icanmakeit.de/2010/03/04/warum-hartz-iv-nicht-abgeschafft-wird/</link>
		<comments>http://www.icanmakeit.de/2010/03/04/warum-hartz-iv-nicht-abgeschafft-wird/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 23:40:20 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Real Life]]></category>
		<category><![CDATA[1-Euro-Job]]></category>
		<category><![CDATA[angst]]></category>
		<category><![CDATA[bundesregierung]]></category>
		<category><![CDATA[hartz iv]]></category>
		<category><![CDATA[kritik]]></category>
		<category><![CDATA[niedriglohn]]></category>
		<category><![CDATA[politik]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/?p=449</guid>
		<description><![CDATA[Vor ein paar Tagen bin ich im Rahmen einer Geburtstagsfeier auf zwei Herren getroffen, die als Fallmanager in einem Jobcenter arbeiten. Beide waren, so entnahm ich dem Gespräch, von Grund auf unzufrieden mit ihrer Arbeit, klagten über zuviele &#8220;Kunden&#8221; für zu wenige Fallmanager. In die Verbitterung mischten sich dann auch Aussagen wie &#8220;Wenn der wiederkommt, [...]]]></description>
			<content:encoded><![CDATA[<p>Vor ein paar Tagen bin ich im Rahmen einer Geburtstagsfeier auf zwei Herren getroffen, die als Fallmanager in einem Jobcenter arbeiten. Beide waren, so entnahm ich dem Gespräch, von Grund auf unzufrieden mit ihrer Arbeit, klagten über zuviele &#8220;Kunden&#8221; für zu wenige Fallmanager. In die Verbitterung mischten sich dann auch Aussagen wie &#8220;Wenn der wiederkommt, dann habe ich endlich genügend Gründe für ne 100%-tige. Zwei hat er ja schon gekriegt und die dritte wird gerade verhandelt.&#8221; Eine &#8220;100%-tige&#8221; ist eines der heftigeren Druckmittel aus dem Sanktionskatalog, mit dem die ARGE einen Hartz IV-Empfänger <span style="text-decoration: line-through;">drangsalieren</span> erziehen kann. Was das mitunter für Auswirkungen hat, ist u.a. bei Telepolis ausführlich geschildert worden, exemplarisch sei auf den Artikel &#8220;<a title="Telepolis - Aushungern und Fordern" href="http://www.heise.de/tp/r4/artikel/31/31162/1.html">Aushungern und Fordern</a>&#8221; hingewiesen. Fallmanager und Leistungsbezieher &#8211; zwei Parteien, die eigentlich zusammenarbeiten sollten, stehen sich verfeindet gegenüber.</p>
<p>Wie konnte es dazu kommen? Traurig aber wahr, beide sind Opfer einer unsozialen Politik geworden. Die Fallmanager können nicht anders. Und die Leistungsbezieher auch nicht. Die Missstände, die Hartz IV seit seiner Einführung verursacht hat, sind ebenfalls hinlänglich diskutiert worden und sollen hier nicht wiedegekäut werden. Ich möchte die Frage beleuchten, warum sich in all den Jahren nichts an Hartz IV gebessert hat bzw. warum der politische Wille zur Abschaffung von Hartz IV nicht existiert, zumindest nicht bei denen, die reelle Chancen auf eine Regierungsbeteiligung haben. Ein Gedankenspiel:</p>
<p>Welchem Zweck dient Hartz IV? Irgendwo unter dem Gerede über soziale Absicherung und die Reintegration in den Arbeitsmarkt kann man eine &#8220;hidden agenda&#8221; ausmachen, einen tieferen Zweck. Hartz IV ist ein Werkzeug geworden, dessen eigentliches Ziel nicht die Arbeitslosen oder die Sozialfälle sind, sondern die einkommensschwachen Schichten, die noch Arbeit haben. Ich unterstelle nicht, dass Hartz IV ursprünglich zu diesem Zweck angedacht war, aber die zu beobachtenden Effekte wurde nicht nur billigend in Kauf genommen sondern aktiv gefördert und provoziert &#8211; die Misere ist mit voller Absicht hausgemacht.</p>
<p>Mit viel Medienchaos werden Leistungsempfänger (die historisch eigentlich mal zwei unterschiedliche Gruppen waren, nämlich Arbeitslose und Sozialhilfeempfänger, und daher eigentlich auch unterschiedlich &#8220;verarztet&#8221; werden müssten) zum Feindbild erhoben. Jeder arbeitende Bürger und jeder Rentner hat einen Grund, Hartz IV-Empfänger zu verabscheuen, so wird suggeriert. Ein faules Pack, das arbeiten könnte, aber nicht will, und mit dieser Verweigerungshaltung auch noch mehr Geld bekommt als Vollzeitbeschäftigte in Niedriglohnjobs und trotzdem noch betrügt wo es geht. &#8220;Arbeit muss sich wieder lohnen!&#8221; schallt es aus der Politik &#8211; und meint damit nicht etwa einen Anstieg der Löhne, sondern eine Absenkung der Hartz IV-Leistungen. Und das geBILDete Volk klatscht Beifall. Das Arbeit sich in nahezu jedem Fall lohnt, hat gerade erst der Paritätische Gesamtverband mit einer Studie belegt: <a title="Pressemitteilung des Paritätischen Gesamtverbandes" href="http://www.der-paritaetische.de/1802/">Damit sich Arbeit lohnt</a>. Das Getöse um Hartz IV sollte damit eigentlich verstummen, da ja widerlegt, aber das Getöse erfüllt einen Zweck: es suggeriert der Gesellschaft, Hartz IV ist fürchterlich, der schlimmste Abstieg, den man erleiden kann. Zusammen mit den Gruselgeschichten, die Hartz IV-Empfänger über die ARGE, die Sanktionen, die Kontrollen, die Bewerbungen, usw. erzählen, wird Hartz IV so zur Horrorvorstellung für jeden Arbeitnehmer. Und wer solche Angst vor der Arbeitslosigkeit hat und auch reell von ihr bedroht ist, der lässt sich zu Zugeständnissen drängen. Die Folge: niedrige Löhne und schlechte Arbeitsbedingungen. Und genau darum geht es: einen &#8220;gefügigen&#8221; und flexiblen Niedriglohnsektor zu etablieren und zu pflegen.</p>
<p>Ein Spiel, bei dem alle verlieren. Die Hartz IV-Empfänger verlieren, weil sie in den Mühlen dieses Systems langsam zermahlen werden und durch Hartz IV sozial gebrandmarkt sind. Die Mitarbeiter der Jobcenter verlieren, weil sie die Aufgabe, die man ihnen gegeben hat, mit dem Werkzeug, das man ihnen gegeben hat, überhaupt nicht erfüllen können &#8211; <a title="Begriffserklärung Kobayashi Maru" href="http://en.wikipedia.org/wiki/Kobayashi_Maru">Kobayashi Maru</a>. Die Einkommensschwachen verlieren, denn auf sie zielen alle Maßnahmen ab, sie machen Zugeständnisse und lassen sich erpressen. Wer ein höheres Einkommen hat, ist so gut wie nie von Hartz IV betroffen und macht sich daher auch weniger Sorgen. Doch auch diese Gruppe verliert, denn sie wird von der Politik und den Medien manipuliert.</p>
<p>Wenn aber so viele verlieren, wer gewinnt denn dann? Zum einen gewinnt die Politik. Hartz IV eignet sich sehr gut, um sich auf Kosten der Arbeitslosen zu profilieren. Nachdem man die nach Kindern sozial schwächste Gruppe zu Schmarotzern gestempelt hat, kann man Wählerstimmen sammeln, wenn man den geblendeten Massen verspricht, den Missbrauch einzudämmen. Eine perfide Taktik, funktioniert aber. Und von allen weiteren Gewinnern profitiert indirekt auch wieder die Politik. Weitere Gewinner der Situation sind Unternehmen, denn ihnen steht ein recht großer Pool an billigen Arbeitskräften zu Verfügung, der Niedriglohnsektor, der durch Hartz IV im Zaum gehalten wird. Ebenso profitieren diverse Organisationen, Kirchen und auch Städte und Gemeinden, denn bei Ihnen stehen die 1-Euro-Jobber unter Vertrag, Arbeitskräfte, die man nicht wirklich bezahlen muss, die aber trotzdem Vollzeitstellen innehaben. Und diesen Leuten bleibt keine Wahl, um weiter uneingeschränkt Leistungen beziehen zu können, müssen sie solche Jobs annehmen. Was man früher Zwangsarbeit nannte, heißt heute 1-Euro-Job und hat für die Politik noch den schönen Nebeneffekt, dass die Arbeitslosenzahlen geschönt werden. Denn wer sich in einem 1-Euro-Job oder auch einer Weiterbildungsmaßnahme befindet, der gilt nicht als arbeitslos.</p>
<p>Das alles kulminiert in einer Erkenntnis: es kann keinen politischen Willen geben Hartz IV abzuschaffen, so lange die Kritiker in der Minderheit sind und das Volk sich hinters Licht führen lässt.</p>
<p>Zum Abschluss noch eine (einseitige) Auswahl an Artikeln, nach denen klar sein sollte, was für ein Elend Hartz IV letzten Endes ist:</p>
<ul>
<li><a href="http://www.heise.de/tp/r4/artikel/32/32175/1.html">Lohndumping im Auftrag des Staats</a></li>
<li><a href="http://www.heise.de/tp/r4/artikel/32/32139/1.html">Von der Politik des Elends und dem Elend der Politik</a></li>
<li><a href="http://www.heise.de/tp/r4/artikel/32/32068/1.html">Hartz IV und der hausgemachte Niedriglohnsektor</a></li>
<li><a href="http://www.heise.de/tp/r4/artikel/31/31940/1.html">Hartz IV wirkt</a></li>
<li><a href="http://www.heise.de/tp/r4/artikel/32/32000/1.html">Ein Sechsjähriger isst eben weniger als ein Fünfjähriger</a></li>
<li><a href="http://www.heise.de/tp/r4/artikel/31/31864/1.html">Mehr Peitsche, weniger Zuckerbrot</a></li>
</ul>

	Tags: <a href="http://www.icanmakeit.de/tag/1-euro-job/" title="1-Euro-Job" rel="tag">1-Euro-Job</a>, <a href="http://www.icanmakeit.de/tag/angst/" title="angst" rel="tag">angst</a>, <a href="http://www.icanmakeit.de/tag/arbeit/" title="Arbeit" rel="tag">Arbeit</a>, <a href="http://www.icanmakeit.de/tag/bundesregierung/" title="bundesregierung" rel="tag">bundesregierung</a>, <a href="http://www.icanmakeit.de/tag/hartz-iv/" title="hartz iv" rel="tag">hartz iv</a>, <a href="http://www.icanmakeit.de/tag/kritik/" title="kritik" rel="tag">kritik</a>, <a href="http://www.icanmakeit.de/tag/niedriglohn/" title="niedriglohn" rel="tag">niedriglohn</a>, <a href="http://www.icanmakeit.de/tag/politik/" title="politik" rel="tag">politik</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2010/03/04/warum-hartz-iv-nicht-abgeschafft-wird/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stromausfall in Münster</title>
		<link>http://www.icanmakeit.de/2008/05/09/stromausfall-in-munster/</link>
		<comments>http://www.icanmakeit.de/2008/05/09/stromausfall-in-munster/#comments</comments>
		<pubDate>Fri, 09 May 2008 10:26:18 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Münster]]></category>
		<category><![CDATA[Stromausfall]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/?p=189</guid>
		<description><![CDATA[So wie es derzeit aussieht wurde Münster mal wieder von einem großflächigen Stromausfall erwischt, der aber zumindest hier auf der Arbeit nicht sehr lange andauerte. Es war aber lang genug damit mein Rechner ausgeht, die Telefonanlage die Grätsche macht und auch Dienste wie Netzwerk oder Server verwirrt sind. Kollegen berichten auch von Glühbirnen, die beim [...]]]></description>
			<content:encoded><![CDATA[<p>So wie es derzeit aussieht wurde Münster mal wieder von einem großflächigen Stromausfall erwischt, der aber zumindest hier auf der Arbeit nicht sehr lange andauerte. Es war aber lang genug damit mein Rechner ausgeht, die Telefonanlage die Grätsche macht und auch Dienste wie Netzwerk oder Server verwirrt sind. Kollegen berichten auch von Glühbirnen, die beim Ausfall durchgebrannt sind.</p>
<p>Bemerkenswert war diesmal auch der plötzliche Abfall des Wasserdrucks im gesamten Gebäude, im Erdgeschoß war nur noch der Steigdruck verfügbar, in den oberen Etagen gar nichts mehr. Anscheinend hat es irgendwo die Verstärkerpumpen der Stadtwerke erwischt. Ich hoffe nur, dass meine Elektrogeräte zu Hause alle noch intakt sind, es sind leider nicht alle durch Überspannungszwischenstecker gesichtert.</p>
<p><strong>Update:</strong> Verschiedene Medien berichten, <span style="text-decoration: line-through;">dass die RWE-Hauptleitung nach Münster ausfiel</span> von einem Kurzschluss in einem Umspannwerk während Reparaturarbeiten und dass daraufhin 7 von insgesamt 9 Umspannwerken in Münster vom Netz gingen. Sowas ähnliches ist im Februar auch schon passiert.</p>

	Tags: <a href="http://www.icanmakeit.de/tag/arbeit/" title="Arbeit" rel="tag">Arbeit</a>, <a href="http://www.icanmakeit.de/tag/munster/" title="Münster" rel="tag">Münster</a>, <a href="http://www.icanmakeit.de/tag/stromausfall/" title="Stromausfall" rel="tag">Stromausfall</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2008/05/09/stromausfall-in-munster/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Kopfschütteln: Die Mindestlohndebatte</title>
		<link>http://www.icanmakeit.de/2007/12/04/kopfschuetteln-die-mindestlohndebatte/</link>
		<comments>http://www.icanmakeit.de/2007/12/04/kopfschuetteln-die-mindestlohndebatte/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 15:22:16 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[kopfschütteln]]></category>
		<category><![CDATA[politik]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/12/04/kopfschuetteln-die-mindestlohndebatte/</guid>
		<description><![CDATA[Bei Anne Will wurde am Sonntag über den Mindestlohn diskutiert. Bemerkenswertes Zitat von Norbert Röttgen (CDU): Â &#8221;Es ist nicht die Aufgabe des Staates den Markt zu ersetzen in der Lohnfindung, sondern zu ergänzen dafür, dass die Menschen und die Familien das haben, was sie ergänzend zum Leben brauchen.&#8221; Für mich übersetzt heißt das: Lass die [...]]]></description>
			<content:encoded><![CDATA[<p>Bei <a href="http://daserste.ndr.de/annewill/aktuellesendung/t_cid-4260020_mid-4444624_.html" title="Das Video der Anne Will Sendung vom 2.12.2007">Anne Will</a> wurde am Sonntag über den Mindestlohn diskutiert. Bemerkenswertes Zitat von Norbert Röttgen (CDU):</p>
<blockquote><p>Â &#8221;Es ist nicht die Aufgabe des Staates den Markt zu ersetzen in der Lohnfindung, sondern zu ergänzen dafür, dass die Menschen und die Familien das haben, was sie ergänzend zum Leben brauchen.&#8221;</p></blockquote>
<p>Für mich übersetzt heißt das: Lass die Wirtschaft munter irgendwelche Niedrigstlöhne zahlen, der Staat ist ja in der Verantwortung, den fehlenden Teil bis zum Existenzminimum draufzulegen. Die Katze beißt sich hier aber in den Schwanz: Die Unternehmen zahlen ihren Angestellten niedrige Löhne. Dadurch kann das niedrige Preisniveau der Produkte, die trotzdem noch eine gute Gewinnmarge bringen, gehalten werden, so dass sich mehr Leute die Produkte leisten können. Die könnten nämlich keine höheren Preise bezahlen, weil sie</p>
<ol>
<li>von Sozialleistungen oder</li>
<li>selber vom <a href="http://de.wikipedia.org/wiki/Kombilohn" title="Erklärung des Kombilohnprinzips (Wikipedia)">Kombilohn</a> leben oder</li>
<li>höhere Steuerbelastungen haben, weil sie den Kombilohn der anderen finanzieren müssen</li>
</ol>
<p>Was bleibt also? Kopfschütteln. Oder Gregor Gysis (Die Linke) völlig richtige Aussage:</p>
<blockquote><p>&#8220;Kombilohn bedeutet, die Risiken der Marktwirtschaft einfach auf den Staat zu übertragen.&#8221;</p></blockquote>

	Tags: <a href="http://www.icanmakeit.de/tag/kopfschuetteln/" title="kopfschütteln" rel="tag">kopfschütteln</a>, <a href="http://www.icanmakeit.de/tag/politik/" title="politik" rel="tag">politik</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/12/04/kopfschuetteln-die-mindestlohndebatte/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Manche Dinge blieben besser unentdeckt</title>
		<link>http://www.icanmakeit.de/2007/08/17/manche-dinge-blieben-besser-unentdeckt/</link>
		<comments>http://www.icanmakeit.de/2007/08/17/manche-dinge-blieben-besser-unentdeckt/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 12:53:02 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[quellcode]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[unnötig]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/08/17/manche-dinge-blieben-besser-unentdeckt/</guid>
		<description><![CDATA[Softwareprojekte haben die unangenehme Eigenschaft bei längerer Lagerzeit in der Versionsverwaltung zu degenerieren. Dieses Phänomen liegt allerdings eher daran, dass man sich als Programmierer weiterentwickelt und dazulernt, während der Code gleich (schlecht) bleibt. Manchmal gibt es aber auch Codeteile, die von vorneherein sehr merkwürdig sind: PLAIN TEXT JAVA: final Date heute = new SimpleDateFormat&#40;&#34;HH:mm dd.MM.yyyy&#34;&#41;.parse&#40;new [...]]]></description>
			<content:encoded><![CDATA[<p>Softwareprojekte haben die unangenehme Eigenschaft bei längerer Lagerzeit in der <a title="Was ist eine Versionsverwaltung?" href="http://de.wikipedia.org/wiki/Versionsverwaltung">Versionsverwaltung</a> zu degenerieren. Dieses Phänomen liegt allerdings eher daran, dass man sich als Programmierer weiterentwickelt und dazulernt, während der Code gleich (schlecht) bleibt.</p>
<p>Manchmal gibt es aber auch Codeteile, die von vorneherein sehr merkwürdig sind:</p>
<div class="igBar"><span id="ljava-3"><a href="#" onclick="javascript:showPlainTxt('java-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-3">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a> heute = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASimpleDateFormat+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">SimpleDateFormat</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;HH:mm dd.MM.yyyy&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">parse</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ASimpleDateFormat+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">SimpleDateFormat</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;HH:mm dd.MM.yyyy&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">format</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Es ginge auch etwas einfacher:</p>
<div class="igBar"><span id="ljava-4"><a href="#" onclick="javascript:showPlainTxt('java-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-4">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a> heute = <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3ADate+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Date</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Solche Dinge will man dann doch lieber nie wieder sehen...</p>

	Tags: <a href="http://www.icanmakeit.de/tag/quellcode/" title="quellcode" rel="tag">quellcode</a>, <a href="http://www.icanmakeit.de/tag/software/" title="software" rel="tag">software</a>, <a href="http://www.icanmakeit.de/tag/unnotig/" title="unnötig" rel="tag">unnötig</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/08/17/manche-dinge-blieben-besser-unentdeckt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Große Trabbi-Roadtour</title>
		<link>http://www.icanmakeit.de/2007/08/14/grosse-trabbi-roadtour/</link>
		<comments>http://www.icanmakeit.de/2007/08/14/grosse-trabbi-roadtour/#comments</comments>
		<pubDate>Tue, 14 Aug 2007 10:35:06 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Begegnungen]]></category>
		<category><![CDATA[KfZ]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[unterwegs]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/08/14/grosse-trabbi-roadtour/</guid>
		<description><![CDATA[Ich hatte heute am letzten Freitag die einmalige Gelegenheit im Rahmen eines Incentives, das mein Arbeitgeber für die erfolgreiche Fortführung des startothek-Projekts ausgerichtet hat, eine Roadtour durch das Münsterland zu machen und zwar mit einem Trabant 601. Es kam hierbei auf das Anfahren verschiedener Stationen und auf das Lösen von Aufgaben und einem Quiz an [...]]]></description>
			<content:encoded><![CDATA[<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/album/72157601376712419/Trabbi-Roadtour-durchs-Mnsterland.html"><img src="http://farm2.static.flickr.com/1389/1083983649_7d5ae93f50_t.jpg" border="0" alt="" width="100" height="75" /></a></p>
<p>Ich hatte <span style="text-decoration: line-through;">heute</span> am letzten Freitag die <span style="text-decoration: line-through;">einmalige</span> Gelegenheit im Rahmen eines <a title="Erklärung des Begriffs Incentive" href="http://de.wikipedia.org/wiki/Incentive">Incentives</a>, das mein <a title="Webseite von LexisNexis" href="http://www.lexisnexis.de">Arbeitgeber</a> für die erfolgreiche Fortführung des <a title="startothek, das Onlineinformationssystem für Gründungsberater" href="http://www.startothek.de">startothek</a>-Projekts ausgerichtet hat, eine Roadtour durch das Münsterland zu machen und zwar mit einem <a title="Informationen zum Trabant 601" href="http://de.wikipedia.org/wiki/Trabant_601">Trabant 601</a>. Es kam hierbei auf das Anfahren verschiedener Stationen und auf das Lösen von Aufgaben und einem Quiz an sowie auf das Verfahren von möglichst wenigen Kilometern.</p>
<p>In sechs Teams zu je zwei oder drei Mitfahrern in je einem Trabant waren einzelne Etappen abzufahren und die in einem Roadbook aufgeführten Aufgaben zu erledigen. Aber zunächst stand eine Einweisung für die Fahrer an, denn ein Trabbi ist ein automobiler Sonderfall. So gibt es z.B. keine Tankanzeige, der geneigte Fahrer muss einen Plastikstab in den Tank halten um abschätzen zu können, wie weit er noch fahren kann.</p>
<p>Die größte Hürde beim Umstieg ist aber die Lenkradschaltung. Mit einem Hebel kann man vier Gänge durchschalten: der erste Gang ist unten, in der Mitte der Leerlauf und oben der zweite. Danach muss man den Hebel herausziehen und hat denn unten den dritten und oben den vierten. Den Rückwärtsgang erreicht man durch Reindrücken des Hebels. Geradezu zerbrechlich nimmt sich der Blinkerhebel aus, bei dem man jedesmal Angst haben muss, dass man ihn nach dem Blinken in der Hand hat.</p>
<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/photo/1083996433/Das-Sandsteinmuseum-in-Havixbeck.html"><img title="Das Sandsteinmuseum in Havixbeck" src="http://farm2.static.flickr.com/1050/1083996433_8d92eaa070_t.jpg" border="0" alt="Das Sandsteinmuseum in Havixbeck" width="75" height="100" align="right" /></a> Nach anfänglichen Schwierigkeiten ging es dann auf die Straße. Erstes Ziel war das <a title="Homepage des Sandsteinmuseums" href="http://www.sandsteinmuseum.de/">Sandsteinmuseum</a> in Havixbeck. Dort war die Frage zu klären, wie die Sagengestalten genannt wurden, von denen man glaubte, dass sie im Sandstein leben würden. Nachdem wir rausbekommen hatten, dass sich diese Teitekerlken schimpfen, erhielten wir noch eine Münsterland-Erlebniskarte zwecks Navigation und machten uns wieder auf den Weg. Der Trabant hat einen Benzinhahn im Innenraum, den man schließen sollte, wenn man den Wagen länger stehen lässt. Dumm nur, wenn man ihn - wie wir - vergisst wieder zu öffnen, wenn man weiterfährt. Wir kamen etwa 800 Meter weit, was reichte, um auf eine Kreuzung zu rollen. Aber mit einem Trabbi kann man sich einiges erlauben, ohne dass jemand hupt. Anscheinend haben alle Mitleid.</p>
<p>Zweite Anlaufstelle auf der Tour war die <a title="Webseite der Kirchengemeinde St. Johannes" href="http://www.altenberge-st-johannes.de/">St. Johannes Kirche</a> in <a title="Webseite von Altenberge" href="http://www.altenberge.de">Altenberge</a>. Dort war eine geografische Maßeinheit gefragt und ihre Bedeutung. Auf der Seite der Kirche findet sich eine Plakette mit der Inschrift 108 NN, die besagt, dass die Kirche eben 108 Meter über <a title="Informationen über Normalnull bei Wikipedia" href="http://de.wikipedia.org/wiki/Normalnull">Normalnull</a> liegt. Nach dieser Aufgabe ging es wieder ins Auto und weiter nach Burgsteinfurt.</p>
<p><span style="text-decoration: line-through;">Das ewige Rätsel, wo jetzt der Unterschied zwischen <a title="Webseite der Stadt Steinfurt" href="http://www.steinfurt.de">Steinfurt</a> und Burgsteinfurt liegt, konnte ich auch dieses Mal nicht lösen, ich vermute aber immer noch stark, dass es letztendlich zwei Namen für den gleichen Ort sind.</span> OK, mittlerweile bin ich schlauer: 1975 wurden Burgsteinfurt und Borghorst zusammengelegt zu Steinfurt. Im dortigen CafÃ© gab es dann Kaffee und Kuchen. Ã?hnlich wie in der DDR gab es nicht viel auszusuchen, die Wahl des Kuchens orientierte eher an der Verfügbarkeit als am persönlichen Geschmack. Während des Zwischenstopps versuchten wir uns dann am DDR-Quiz, dass im Roadbook aufgeführt war und auch zur Bewertung herangezogen wurde.</p>
<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/photo/1084886256/Das-Holtwicker-Ei.html"><img src="http://farm2.static.flickr.com/1257/1084886256_8e9cbd2e62_t.jpg" border="0" alt="Das Holtwicker Ei" width="100" height="75" /></a> Nach der Pause ging es über Land weiter zum <a title="Informationen zum Holtwicker Ei" href="http://de.wikipedia.org/wiki/Holtwicker_Ei">Holtwicker Ei</a>. Es handelt sich dabei um einen großen Findling, um den man einen kleinen Park herum gebaut hat. Dumm nur dass man das Ding fast nicht findet, wenn man nicht weiß, wo genau es ist. Man fährt dort leicht dran vorbei. Im dortigen Park nahmen wir an einem Ost-/Westproduktvergleich teil, bei dem es galt, zwei Nougatcremes und zwei Kekssorten mit verbundenen Augen in Ost und West zu klassifizieren, was meinem Mitfahrer Markus und mir auch gelang. Lediglich bei der Unterscheidung von Liedtexten der <a title="Offizielle Webseite der Puhdys" href="http://www.puhdys.com/">Puhdys</a> und der <a title="Webseite der Münchner Freiheit" href="http://www.crocodile-music.de/freiheit/">Münchner Freiheit</a> mussten wir dann passen, die Texte sind bei beiden etwa gleich schnulzig.</p>
<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/photo/1084875774/Der-Longinusturm.html"><img title="Der Longinusturm" src="http://farm2.static.flickr.com/1360/1084875774_b9528747d4_t.jpg" border="0" alt="Der Longinusturm" width="75" height="100" align="right" /></a> Wieder unterwegs war das nächste Ziel der <a title="Webseite des Longinusturms" href="http://www.longinusturm.de">Longinusturm</a> nahe <a href="http://www.nottuln.de">Nottuln</a>. Die um Roadbook abgedruckten Orientierungskarten mit der offiziellen Routenempfehlung erschienen uns als Umweg, weshalb wir von <a title="Webseite von Rosendahl" href="http://www.rosendahl.de/">Rosendahl</a> (dort liegt das Holtwicker Ei) über <a title="Webseite von Billerbeck" href="http://www.billerbeck.de/">Billerbeck</a> nach <a title="Webseite der Region Baumberge" href="http://www.aidm.baumberge.net/">Baumberge</a> bzw. Nottuln fuhren. Diese Entscheidung sparte uns einige Kilometer. Als wir am Turm ankamen wurde dort eine für den Abend geplante Festivität samt Feuerwerk und WDR-Liveübertragung vorbereitet. Hintergrund des ganzen: Billerbeck, Nottuln und Havixbeck sind Preisträger des <a title="Webseite des Ab in die Mitte!-Wettbewerbs" href="http://www.abindiemitte-nrw.de/">Ab in die Mitte!-Wettbewerbs</a> des Landes NRW, einem Programm zur Förderung von Stadt- und Kommunalmarketing. Am Longinusturm würde um 20 Uhr die Auftaktveranstaltung zu den Feierlichkeiten stattfinden, die sich die nächsten Monate hinziehen würden.</p>
<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/photo/1084892678/Was-es-nicht-alles-gibt-Grter-Standaschenbecher-der-Welt.html"><img title="Was es nicht alles gibt: der größte und schwerste Standaschenbecher der Welt" src="http://farm2.static.flickr.com/1128/1084892678_2248cc6ab2_t.jpg" border="0" alt="Was es nicht alles gibt: der größte und schwerste Standaschenbecher der Welt" width="100" height="75" /></a> Es galt nun die Frage zu klären, wie hoch der Turm eigentlich insgesamt ist. Der Baumberg ist mit 187,61 Metern über NN die höchste Erhebung des Münsterlandes (was ich als gebürtiger Wuppertaler eher peinlich finde), der Turm selber hat 32 Meter Höhe zuzüglich etwaiger Antennen. Die Aussicht vom Turm ist ganz nett aber nicht wirklich überragend, vor allem auch weil es eigentlich nichts Sehenswertes in der Umgebung gibt. Eine witzige Kleinigkeit steht vor dem Turm: der größte und schwerste Standaschenbecher der Welt, der sogar im Guinessbuch der Rekorde steht.</p>
<p>Der Longinusturm war die letzte Station im Roadbook und wir fuhren von dort aus wieder zurück nach Nienberge. Insgesamt hatten wir an diesem Tag 113 Kilometer im Trabant zurückgelegt, über 10 Kilometer weniger als jedes andere Team. Letzten Endes war diese Tatsache für unseren Gesamtsieg ausschlaggebend. Der Abend klang dann mit einem gemütlichen Essen samt Preisverleihung am Hafen aus.</p>
<p><a class="tt-flickr" href="http://www.icanmakeit.de/fotos/photo/1084028829/Die-Tour-ist-vorbei-alle-Teilnehmer-sind-zurck.html"><img title="Die Tour ist vorbei, alle Teilnehmer sind zurÃ?Â¼ck." src="http://farm2.static.flickr.com/1280/1084028829_fc2b2aeecf_t.jpg" border="0" alt="Die Tour ist vorbei, alle Teilnehmer sind zurÃ?Â¼ck." width="100" height="75" align="right" /></a>Von dieser Stelle nochmals vielen Dank an die Organistoren von der <a title="Homepage der Event &amp; Touring AG" href="http://www.event-touring.de/">Event &amp; Touring AG</a> sowie Petra und alle anderen Mitfahrer! Es hat wirklich Spaß gemacht! Und ein großes Sorry an den LKW-Fahrer auf der Landstraße zwischen Steinfurt und Rosendahl: wir haben wirklich gedacht, wir kämen mit dem Trabbi schneller weg...</p>

	Tags: <a href="http://www.icanmakeit.de/tag/arbeit/" title="Arbeit" rel="tag">Arbeit</a>, <a href="http://www.icanmakeit.de/tag/auto/" title="auto" rel="tag">auto</a>, <a href="http://www.icanmakeit.de/tag/unterwegs/" title="unterwegs" rel="tag">unterwegs</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/08/14/grosse-trabbi-roadtour/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Seltsame Begegnungen oder der Tag an dem ich zum Ausbilder wurde</title>
		<link>http://www.icanmakeit.de/2007/05/04/seltsame-begegnungen-oder-der-tag-an-dem-ich-zum-ausbilder-wurde/</link>
		<comments>http://www.icanmakeit.de/2007/05/04/seltsame-begegnungen-oder-der-tag-an-dem-ich-zum-ausbilder-wurde/#comments</comments>
		<pubDate>Thu, 03 May 2007 22:23:15 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[I, Me & Myself]]></category>
		<category><![CDATA[kurioses]]></category>
		<category><![CDATA[privat]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/05/04/seltsame-begegnungen-oder-der-tag-an-dem-ich-zum-ausbilder-wurde/</guid>
		<description><![CDATA[Ich kann mich noch erinnern, wie ich zu Anfang meiner Ausbildung zum Ausbilder von einem Dozenten gefragt wurde, welchen Ausbildungsberuf ich erlernt hätte. Als ich erwiderte, ich hätte keine Ausbildung im IHK-Sinne sondern ein Diplom in Informatik von der FH Dortmund, bekam ich zu hören "Aber sie brauchen doch eine fachliche Eignung um Ausbilder zu [...]]]></description>
			<content:encoded><![CDATA[<p>Ich kann mich noch erinnern, wie ich zu Anfang meiner Ausbildung zum Ausbilder von einem Dozenten gefragt wurde, welchen Ausbildungsberuf ich erlernt hätte. Als ich erwiderte, ich hätte keine Ausbildung im IHK-Sinne sondern ein Diplom in Informatik von der <a href="http://www.inf.fh-dortmund.de/" title="Webseite vom Fachbereich der Informatik der FH Dortmund">FH Dortmund</a>, bekam ich zu hören "Aber sie brauchen doch eine fachliche Eignung um Ausbilder zu werden".</p>
<p>Aber alle Unwägbarkeiten sind durchstanden, heute habe ich die mündliche Prüfung zum Ausbilder bestanden und bin damit berechtigt, Auszubildende auszubilden. Nicht dass man einen solchen Ausbilderschein derzeit bräuchte, evtl. wird man ihn nach Verlängerung des Aubildungspakts auch bis 2010 erstmal nicht brauchen, aber was man hat, das hat man.</p>
<p>Mit der mündlichen Prüfung kam dann auch die erste seltsame Begegnung: das Prüfungstrio der IHK. Es hat eine Weile gebraucht, bis ich verstanden hatte, dass man gar nicht mit mir diskutieren wollte, auch wenn die Fragen den Anschein machten, sondern lediglich bestimmte Schlüsselwörter (z.B. Handlungskompetenz, Ausbildungsordnung, Schlüsselqualifikationen, etc.) hören will und dass man bei seinem Standpunkt bleibt. Da war ich nur bedingt drauf vorbereitet, denn wer rechnet schon mit Fragen wie "Glauben Sie, dass Sie Auszubildende des ersten Lehrjahrs so ohne Vorbereitung auf eine Overheadfolie schreiben lassen können?" Was soll man auf so eine Frage antworten?  Aber Ende gut, alles gut.</p>
<p>Die nächste interessante Begegnung hatte ich dann auf dem Weg zum Sport. Auf der B54 kam mir mein Auto entgegen, ebenfalls ein blauer Octavia RS Kombi. Skoda gibt als Absatzziel für den RS 1100 Einheiten pro Jahr deutschlandweit an, also ist die Wahrscheinlichkeit, den baugleichen RS zu treffen doch recht gering.</p>
<p>Die dritte Begegnung hatte ich dann beim Sport. Vom Studio aus kann man auf den Hafenplatz. Vom Kraftwerk aus führt eine Eisenbahnstrecke quer über den Albersloher Weg und hinter dem Kino lang. Jetzt bin ich nicht häufig dort in der Gegend, aber ich hätte behauptet, dass dort nie ein Zug fährt. Falsch gedacht, heute fuhr dort tatsächlich eine einzelne Diesellok, begleitet von einem Arbeiter, der die Schrankenanlage auf dem Albersloher Weg bediente. Für viele Kinogänger und Autofahrer dürfte das auch das erste Mal gewesen sein.</p>
<p>Achja, und nochwas: <a href="http://www.joost.com/" title="Webseite von Joost">Joost</a> ist verdammt instabil und intuitiv bedienbar sieht auch anders aus. Aber das Angebot an Inhalten ist jetzt schon recht gut.</p>

	Tags: <a href="http://www.icanmakeit.de/tag/kurioses/" title="kurioses" rel="tag">kurioses</a>, <a href="http://www.icanmakeit.de/tag/privat/" title="privat" rel="tag">privat</a>, <a href="http://www.icanmakeit.de/tag/web/" title="web" rel="tag">web</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/05/04/seltsame-begegnungen-oder-der-tag-an-dem-ich-zum-ausbilder-wurde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schon wieder Berlin, diesmal gutes Wetter</title>
		<link>http://www.icanmakeit.de/2007/04/21/schon-wieder-berlin-diesmal-gutes-wetter/</link>
		<comments>http://www.icanmakeit.de/2007/04/21/schon-wieder-berlin-diesmal-gutes-wetter/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 23:19:33 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[berlin]]></category>
		<category><![CDATA[g8]]></category>
		<category><![CDATA[reise]]></category>
		<category><![CDATA[umwelt]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/04/21/schon-wieder-berlin-diesmal-gutes-wetter/</guid>
		<description><![CDATA[Am vergangenen Donnerstag (19.4.) ging es wieder auf Dienstreise nach Berlin. Diesmal hatten wir einen Termin, der erst mittags anfing, ich konnte also "ausschlafen", der Zug ging erst um 8:34 Uhr. Zu unser aller Überraschung herrschte in Berlin gutes Wetter, also zu Abwechslung mal kein schwerer Orkan oder sintflutartiger Regen. Nach dem Termin bei der [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.icanmakeit.de/fotos/album/72157600099865681/Dienstreise_nach_Berlin_19042007.html" class="tt-flickr"><img src="http://farm1.static.flickr.com/219/466535256_2f682af8d7_t.jpg" border="0" height="75" width="100" /></a>  Am vergangenen Donnerstag (19.4.) ging es wieder auf Dienstreise nach Berlin. Diesmal hatten wir einen Termin, der erst mittags anfing, ich konnte also "ausschlafen", der Zug ging erst um 8:34 Uhr. Zu unser aller Überraschung herrschte in Berlin gutes Wetter, also zu Abwechslung mal kein schwerer Orkan oder sintflutartiger Regen. Nach dem Termin bei der <a href="http://www.kfw.de" title="Webseite der Kreditanstalt für Wiederaufbau">Kreditanstalt für Wiederaufbau</a> blieb uns noch etwas Zeit, die Stadt endlich mal aus der Nähe zu betrachten. Ich war jetzt schon mindestens sechs mal in Berlin - immer dienstlich - und habe bisher weder die Siegessäule noch das Brandenburger Tor aus der Nähe gesehen. Am Gendarmenmarkt war viel Polizei präsent, man erwartete die G8-Umweltminister zu einem Treffen. Ich hab mal recherchiert, da niemandem die Namen der restlichen sieben nicht-deutschen Umweltminister einfallen wollten:</p>
<ul>
<li>USA: <a href="http://www.hhs.gov/about/bios/dhhssec.html" title="Informationen über Michael Leavitt beim Department of Health and Human Service">Michael Leavitt</a></li>
<li>Frankreich: <a href="http://www.premier-ministre.gouv.fr/acteurs/biographie_5/nelly_olin_ministre_ecologie_50058.html" title="Informationen über Nelly Olin auf der Seite des Premierministeriums">Nelly Olin</a></li>
<li>Großbritannien: <a href="http://www.davidmiliband.defra.gov.uk/blogs/ministerial_blog/default.aspx" title="Informationen über David Miliband beim englischen Umweltministerium">David Miliband</a></li>
<li>Russland: <a href="http://www.trutnev.ru/" title="Offizielle Homepage von Yuri Trutnev">Yuri Trutnev</a></li>
<li>Kanada: <a href="http://www.johnbaird.com/" title="Offizielle Homepage von John Baird">John Baird</a></li>
<li>Italien: <a href="http://www.pecoraroscanio.it/" title="Offizielle Homepage von Alfonso Scanio">Alfonso Scanio</a></li>
<li>Japan: <a href="http://www.kantei.go.jp/foreign/abedaijin/060926/11wakabayashi_e.html" title="Der politische Werdegang von M. Wakabayashi">Masatoshi Wakabayashi</a></li>
<li>Deutschland: <a href="http://sigmargabriel.de/" title="Offizielle Hompage von Sigmar Gabriel">Sigmar Gabriel</a></li>
</ul>
<p>Interessant ist, dass die USA nicht über ein Umweltministerium im deutschen Sinne zu verfügen scheinen, Mike Leavitt ist eher Gesundheitsminister als Umweltminister. Naja, wen wunderts.</p>

	Tags: <a href="http://www.icanmakeit.de/tag/berlin/" title="berlin" rel="tag">berlin</a>, <a href="http://www.icanmakeit.de/tag/g8/" title="g8" rel="tag">g8</a>, <a href="http://www.icanmakeit.de/tag/reise/" title="reise" rel="tag">reise</a>, <a href="http://www.icanmakeit.de/tag/umwelt/" title="umwelt" rel="tag">umwelt</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/04/21/schon-wieder-berlin-diesmal-gutes-wetter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realistische Betrachung: Administratoren vs. Entwickler</title>
		<link>http://www.icanmakeit.de/2007/01/12/realistische-betrachung-administratoren-vs-entwickler/</link>
		<comments>http://www.icanmakeit.de/2007/01/12/realistische-betrachung-administratoren-vs-entwickler/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 09:58:14 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Computer & Technik]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2007/01/12/realistische-betrachung-administratoren-vs-entwickler/</guid>
		<description><![CDATA[Im ONJava.com-Blog von O'Reilly wurde heute ein interessanter Artikel Timothy O'Brien veröffentlicht, der sich mit den häufig auftretenden Konflikten zwischen Entwicklern und Administratoren beschäftigt. Er nennt sich Java's "Operations" Problems und bietet eine sehr interessante Betrachtungsweise eines typischen Konflikts, den vermutlich jeder Entwickler in größeren Unternehmen schon einmal erlebt hat: der Entwickler möchte etwas, der [...]]]></description>
			<content:encoded><![CDATA[<p>Im <a title="O'Reilly Network Java Webseite" href="http://www.onjava.com/">ONJava.com-Blog</a> von O'Reilly wurde heute ein interessanter Artikel Timothy O'Brien veröffentlicht, der sich mit den häufig auftretenden Konflikten zwischen Entwicklern und Administratoren beschäftigt. Er nennt sich <a title="Artikel Javas Operations Problem bei ONJava.com" href="http://www.oreillynet.com/onjava/blog/2007/01/javas_operations_problem.html"><em>Java's "Operations" Problems</em></a> und bietet eine sehr interessante Betrachtungsweise eines typischen Konflikts, den vermutlich jeder Entwickler in größeren Unternehmen schon einmal erlebt hat: der Entwickler möchte etwas, der Administrator möchte genau das nicht oder auch umgekehrt. Dies führt meist zu größeren Konflikten, die mehr einem Glaubenskrieg ähneln als einer sachlichen Diskussion.</p>
<p>Der Artikel handelt in diesem Fall speziell von Java, dass durch seine Abstraktion von den eigentlichen Systemgrundlagen eine zusätzliche Hürde mit einbringt, die vorgestellten Thesen und Lösungsansätze sind allerdings allgemeingültig.<br />
O'Brien sieht den Grund für die Konflikte in einer zu starren Abgrenzung zwischen den beiden Personengruppen, deren Tätigkeit thematisch überlappt, deren Zuständigkeiten aber hart getrennt sind. Er skizziert eine ideale Verfahrensweise und und stellt einen zweistufigen Plan vor, wie man die Reibung zwischen Administration und Entwicklung verringert.</p>
<blockquote><p><strong>The Short-term Solution: Hold Hands and Sing a Song</strong></p>
<p>If your organization has friction between Operations and Development, a quick short-term fix is to nominate one person from each team to serve as a liaison to the other group.</p></blockquote>
<p>Diesen Schritt haben wir in unserer Firma bereits vollzogen und es hat sich als sehr gut heraus gestellt, eine direkte Schnittstelle zur anderen Abteilung zu haben. Probleme aber auch Anforderungen sind so viel einfacher zu klären.</p>
<blockquote><p><strong>The Long-term Solution: Stop Developing Applications, Stop Administering Systems</strong></p>
<p>â?¦do away with System Administrators and Application Developers. No, really, I mean that.</p></blockquote>
<p>Der Ausschnitt selber klingt recht drastisch, er beschreibt aber eine thematische Annäherung von Administratoren und Entwicklern und den Wandel der klassischen Rollen im Verlauf der Zeit und im Zuge der technischen Entwicklung.</p>
<p>Insgesamt ein sehr lesenswerter Artikel, den ich jedem Administrator und jedem Entwickler nur empfehlen kann.</p>
Dieser Beitrag ist nicht getaggt.]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2007/01/12/realistische-betrachung-administratoren-vs-entwickler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JPA: Bidirektionale OneToMany/ManyToOne Beziehungen</title>
		<link>http://www.icanmakeit.de/2006/11/14/jpa-bidirektionale-onetomanymanytoone-beziehungen/</link>
		<comments>http://www.icanmakeit.de/2006/11/14/jpa-bidirektionale-onetomanymanytoone-beziehungen/#comments</comments>
		<pubDate>Tue, 14 Nov 2006 11:23:50 +0000</pubDate>
		<dc:creator>Hendrik Busch</dc:creator>
				<category><![CDATA[Arbeit]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[enterprise]]></category>

		<guid isPermaLink="false">http://www.icanmakeit.de/2006/11/14/jpa-bidirektionale-onetomanymanytoone-beziehungen/</guid>
		<description><![CDATA[Dieser Beitrag soll in erster Linie für mich als Gedächtnisstütze dienen. Als Nachwirkung der Schulung beschäftige ich mich nicht nur mit Enterprise Java Beans (EJB) sondern auch mit der Java Persistence API (JPA), dem "neuen" Persistenzstandard, der im gleichen Prozess wie EJB entworfen wurde. Im Entwicklerforum von java.net findet sich ein passender Satz zu dem [...]]]></description>
			<content:encoded><![CDATA[<p>Dieser Beitrag soll in erster Linie für mich als Gedächtnisstütze dienen. Als Nachwirkung der Schulung beschäftige ich mich nicht nur mit Enterprise Java Beans (EJB) sondern auch mit der <a title="Technologieseite zu JPA bei Sun" href="http://java.sun.com/javaee/technologies/entapps/persistence.jsp">Java Persistence API</a> (JPA), dem "neuen" Persistenzstandard, der im gleichen <a title="Java Community Process 220: EJB" href="http://www.jcp.org/en/jsr/detail?id=220">Prozess</a> wie EJB entworfen wurde. Im Entwicklerforum von java.net findet sich ein passender Satz zu dem Thema, den jemand als Antwort bekam, <a title="Thread im Java.net-Forum" href="http://forums.java.net/jive/thread.jspa?threadID=19150">der sich darüber beklagt</a>, dass JPA so unvorhersehbar arbeiten würde:</p>
<blockquote><p>I doubt that it's a matter of it being "unpredictable" so much as it is getting over the learning curve.</p></blockquote>
<p>Genau in dieser Lernkurve stecke ich auch derzeit noch und erlerne JPA gerade im Eigenstudium. Für erfahrene  Entwickler ist dieser Beitrag daher nicht gedacht.</p>
<h3>Das Problem</h3>
<p>Es existieren zwei Entitäten, Benutzer und Gruppe. Jeder Benutzer kann einer Gruppe angehören, folglich können zu einer Gruppe mehrere Benutzer gehören. Beide Entitäten sind wie folgt definiert:</p>
<div class="igBar"><span id="ljava-13"><a href="#" onclick="javascript:showPlainTxt('java-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-13">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AEntity+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Entity</span></a></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Benutzer</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _name;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _vorname;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _benutzername;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _email;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> _id;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> Gruppe _gruppe;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* Es folgen die ganze Getter und Setter fuer die</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* obigen Eigenschaften.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* [...]</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @ManyToOne</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> Gruppe getGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> _gruppe;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> setGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> Gruppe gruppe<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; _gruppe = gruppe;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="ljava-14"><a href="#" onclick="javascript:showPlainTxt('java-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-14">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AEntity+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Entity</span></a></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Gruppe</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #993333;">int</span> _id;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _name;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> _beschreibung;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">private</span> Set&lt;Benutzer&gt; _benutzer = <span style="color: #000000; font-weight: bold;">new</span> HashSet&lt;Benutzer&gt;<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* Es folgen die ganze Getter und Setter fuer die</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* obigen Eigenschaften.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;* [...]</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">&nbsp; &nbsp; &nbsp;*/</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @OneToMany<span style="color: #66cc66;">&#40;</span>mappedBy = <span style="color: #ff0000;">&quot;gruppe&quot;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> Set&lt;Benutzer&gt; getBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">return</span> _benutzer;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> setBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> Set&lt;Benutzer&gt; benutzer<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; _benutzer = benutzer;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ein kleines Programm geht jetzt her und erzeugt drei Benutzer und zwei Gruppen. Zwei der Benutzer werden der ersten Gruppe zugewiesen, der dritte der anderen Gruppe.</p>
<div class="igBar"><span id="ljava-15"><a href="#" onclick="javascript:showPlainTxt('java-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-15">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">EntityManager em = createEntityManager<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Gruppe g1 = createGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Demokraten&quot;</span>, <span style="color: #ff0000;">&quot;Die Partei der Demokraten&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Gruppe g2 = createGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Republikaner&quot;</span>, <span style="color: #ff0000;">&quot;Die Partei der Republikaner&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b1 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Obama&quot;</span>, <span style="color: #ff0000;">&quot;Barack&quot;</span>, <span style="color: #ff0000;">&quot;bobama&quot;</span>, <span style="color: #ff0000;">&quot;obama@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b2 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;McCain&quot;</span>, <span style="color: #ff0000;">&quot;John&quot;</span>, <span style="color: #ff0000;">&quot;jmccain&quot;</span>, <span style="color: #ff0000;">&quot;mccain@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b3 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Clinton&quot;</span>, <span style="color: #ff0000;">&quot;Hillary&quot;</span>, <span style="color: #ff0000;">&quot;hclinton&quot;</span>, <span style="color: #ff0000;">&quot;clinton@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b1.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b2.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b3.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b3<span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Danach geht das Programm her und lädt die Datensätze wieder aus der Datenbank und gibt sie und ihre Beziehungen aus.</p>
<div class="igBar"><span id="ljava-16"><a href="#" onclick="javascript:showPlainTxt('java-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-16">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AList+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">List</span></a> result = em.<span style="color: #006600;">createQuery</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;SELECT b FROM Benutzer b ORDER BY b.name&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getResultList</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Object</span></a> b : result<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>b <span style="color: #000000; font-weight: bold;">instanceof</span> Benutzer<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer benutzer = <span style="color: #66cc66;">&#40;</span>Benutzer<span style="color: #66cc66;">&#41;</span> b;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOG.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span>benutzer<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOG.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>+--&gt; &quot;</span> + benutzer.<span style="color: #006600;">getGruppe</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AList+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">List</span></a> result2 = em.<span style="color: #006600;">createQuery</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;SELECT g FROM Gruppe g&quot;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">getResultList</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AObject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">Object</span></a> o : result2<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>o <span style="color: #000000; font-weight: bold;">instanceof</span> Gruppe<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Gruppe g = <span style="color: #66cc66;">&#40;</span>Gruppe<span style="color: #66cc66;">&#41;</span> o;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOG.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span>g<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOG.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Benutzerzahl: &quot;</span> + g.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">size</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> Benutzer b : g.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LOG.<span style="color: #006600;">info</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>+--&gt; &quot;</span> + b<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Es entsteht folgende Ausgabe:</p>
<div class="igBar"><span id="lcode-17"><a href="#" onclick="javascript:showPlainTxt('code-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-17">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2902</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Clinton, Hillary <span style="color:#006600; font-weight:bold;">&#40;</span>hclinton, clinton@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2800</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2901</span><span style="color:#006600; font-weight:bold;">&#93;</span>: McCain, John <span style="color:#006600; font-weight:bold;">&#40;</span>jmccain, mccain@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2801</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Republikaner <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Republikaner<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2900</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Obama, Barack <span style="color:#006600; font-weight:bold;">&#40;</span>bobama, obama@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2800</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">120</span>: Gruppe <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2800</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">121</span>: Benutzerzahl: <span style="color:#800000;color:#800000;">0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">120</span>: Gruppe <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2801</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Republikaner <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Republikaner<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">121</span>: Benutzerzahl: <span style="color:#800000;color:#800000;">0</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Das Problem ist offensichtlich: Während jeder Benutzer eine Referenz auf das ihm zugeordnete Gruppenobjekt hält, kennt keine der Gruppen die Benutzer, die ihr zugeordnet sind.</p>
<h3>Die Lösung</h3>
<p>Bidirektionale Beziehungen sollten eigentlich anders funktionieren. Das oben geschilderte Problem ist das, was auch vielen anderen wegen seiner Struktur Probleme bereitet. Die Beziehung funktioniert beidseitig und solange der gleiche EntityManager läuft, können Objekte vom JPA-Provider zwischengespeichert werden. Daher reicht ein einseitiges Zuweisen nicht aus, vielmehr muss in diesem Fall auch der Gruppe der Benutzer zugewiesen werden. Erst dann sind die zwischengespeicherten Objekte vollständig.</p>
<div class="igBar"><span id="ljava-18"><a href="#" onclick="javascript:showPlainTxt('java-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-18">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">EntityManager em = createEntityManager<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Gruppe g1 = createGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Demokraten&quot;</span>, <span style="color: #ff0000;">&quot;Die Partei der Demokraten&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Gruppe g2 = createGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Republikaner&quot;</span>, <span style="color: #ff0000;">&quot;Die Partei der Republikaner&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b1 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Obama&quot;</span>, <span style="color: #ff0000;">&quot;Barack&quot;</span>, <span style="color: #ff0000;">&quot;bobama&quot;</span>, <span style="color: #ff0000;">&quot;obama@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b2 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;McCain&quot;</span>, <span style="color: #ff0000;">&quot;John&quot;</span>, <span style="color: #ff0000;">&quot;jmccain&quot;</span>, <span style="color: #ff0000;">&quot;mccain@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">final</span> Benutzer b3 = createBenutzer<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Clinton&quot;</span>, <span style="color: #ff0000;">&quot;Hillary&quot;</span>, <span style="color: #ff0000;">&quot;hclinton&quot;</span>, <span style="color: #ff0000;">&quot;clinton@senate.gov&quot;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b1.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b2.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; b3.<span style="color: #006600;">setGruppe</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; g1.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span>b1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; g2.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span>b2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; g1.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span>b3<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>b3<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>g1<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; em.<span style="color: #006600;">persist</span><span style="color: #66cc66;">&#40;</span>g2<span style="color: #66cc66;">&#41;</span>;</div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Folgende Ausgabe zeigt das Ergebnis der Ã?nderung:</p>
<div class="igBar"><span id="lcode-19"><a href="#" onclick="javascript:showPlainTxt('code-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-19">
<div class="code" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2952</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Clinton, Hillary <span style="color:#006600; font-weight:bold;">&#40;</span>hclinton, clinton@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2850</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2951</span><span style="color:#006600; font-weight:bold;">&#93;</span>: McCain, John <span style="color:#006600; font-weight:bold;">&#40;</span>jmccain, mccain@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2851</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Republikaner <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Republikaner<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">107</span>: Benutzer <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2950</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Obama, Barack <span style="color:#006600; font-weight:bold;">&#40;</span>bobama, obama@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">108</span>: &nbsp; +--&gt; <span style="">Gruppe</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2850</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">112</span>: Lade Gruppen</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">120</span>: Gruppe <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2850</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Demokraten <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Demokraten<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">121</span>: Benutzerzahl: <span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">126</span>: &nbsp; +--&gt; <span style="">Benutzer</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2952</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Clinton, Hillary <span style="color:#006600; font-weight:bold;">&#40;</span>hclinton, clinton@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">126</span>: &nbsp; +--&gt; <span style="">Benutzer</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2950</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Obama, Barack <span style="color:#006600; font-weight:bold;">&#40;</span>bobama, obama@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">120</span>: Gruppe <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2851</span><span style="color:#006600; font-weight:bold;">&#93;</span>: Republikaner <span style="color:#006600; font-weight:bold;">&#40;</span>Die Partei der Republikaner<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">121</span>: Benutzerzahl: <span style="color:#800000;color:#800000;">1</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">JPAClient.<span style="">showDemo</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>@<span style="color:#800000;color:#800000;">126</span>: &nbsp; +--&gt; <span style="">Benutzer</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">2951</span><span style="color:#006600; font-weight:bold;">&#93;</span>: McCain, John <span style="color:#006600; font-weight:bold;">&#40;</span>jmccain, mccain@senate.<span style="">gov</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Diese Art der Zuweisung im Code eines Client-Programms ist natürlich etwas unschön, sinnvoller wäre es, diese Zuweisung gleich im entsprechenden Setter der Benutzerklasse zu machen.</p>
<div class="igBar"><span id="ljava-20"><a href="#" onclick="javascript:showPlainTxt('java-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVA:</span>
<div id="java-20">
<div class="java" style="font-family: monospace;">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #993333;">void</span> setGruppe<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">final</span> Gruppe gruppe<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; _gruppe = gruppe;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">null</span> != _gruppe.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; !_gruppe.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">contains</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _gruppe.<span style="color: #006600;">getBenutzer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">add</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Das Problem erübrigt sich auch, wenn man einen anderen EntityManager verwendet als den, der die Objekte persistiert hat.</p>

	Tags: <a href="http://www.icanmakeit.de/tag/enterprise/" title="enterprise" rel="tag">enterprise</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.icanmakeit.de/2006/11/14/jpa-bidirektionale-onetomanymanytoone-beziehungen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

