<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Orm on Micha Kops&#39; Tech Notes</title>
    <link>https://www.hascode.com/tags/orm/</link>
    <description>Recent content in Orm on Micha Kops&#39; Tech Notes</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>Copyright © 2010 - 2025 Micha Kops. #e9d956c0c0154a221ad83c925346a8fa0e72f866</copyright>
    <lastBuildDate>Mon, 25 Feb 2013 00:00:00 +0100</lastBuildDate>
    <atom:link href="https://www.hascode.com/tags/orm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Adding multiple EntityListeners to an Entity in JPA 2</title>
      <link>https://www.hascode.com/adding-multiple-entitylisteners-to-an-entity-in-jpa-2/</link>
      <pubDate>Mon, 25 Feb 2013 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/adding-multiple-entitylisteners-to-an-entity-in-jpa-2/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The ability to attach lifecycle events to an entity using simple annotations sometimes is a neat feature in the Java Persistence API.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;The following short snippets demonstrate how to bind and trigger the different available lifecycle events using an embedded derby database and a bunch of annotations.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_dependencies&#34;&gt;Dependencies&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;I’m using Hibernate as persistence manager here and Derby as an easy to setup database. In the last step we’ll be writing a test that’s why we’ve added JUnit and Hamcrest.&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>JPA Persistence and Lucene Indexing combined in Hibernate Search</title>
      <link>https://www.hascode.com/jpa-persistence-and-lucene-indexing-combined-in-hibernate-search/</link>
      <pubDate>Sun, 05 Feb 2012 00:00:00 +0100</pubDate>
      <guid>https://www.hascode.com/jpa-persistence-and-lucene-indexing-combined-in-hibernate-search/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Often we’re writing an application that has to handle entities that – on the one side need to be persisted in a relational database using standards like the Java Persistence API (JPA) and using frameworks like Hibernate ORM or EclipseLink.&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;On the other side those entities and their fields are often stored in a highspeed indexer like Lucene. From this situation arises a bunch of common problems .. to synchronize both data sources, to handle special data mapped in an entity like an office document and so on..&lt;/p&gt;
&lt;/div&gt;</description>
    </item>
    <item>
      <title>Object-relational Mapping using Java Persistence API JPA 2</title>
      <link>https://www.hascode.com/object-relational-mapping-using-java-persistence-api-jpa-2/</link>
      <pubDate>Mon, 11 Oct 2010 00:00:00 +0200</pubDate>
      <guid>https://www.hascode.com/object-relational-mapping-using-java-persistence-api-jpa-2/</guid>
      <description>&lt;div id=&#34;preamble&#34;&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;paragraph&#34;&gt;
&lt;p&gt;Today we’re going to take a look at the world of object-relational Mapping and how it is done using the Java Persistence API by creating some basic examples, mapping some relations and querying objects using JPQL or the Criteria API..&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&#34;sect1&#34;&gt;
&lt;h2 id=&#34;_prerequisites&#34;&gt;Prerequisites&lt;/h2&gt;
&lt;div class=&#34;sectionbody&#34;&gt;
&lt;div class=&#34;ulist&#34;&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Java 6 JDK&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Maven &amp;gt;= 2&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you’d like to take a look behind the scenes e.g. how entities are mapped in your database you could install a RDBMS of your choice .. or just use Derby/JavaDB that is bundled with the JDK 6&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
