Fixed the bug in the mapping for package data-model
authorKai Moritz <kai@juplo.de>
Wed, 16 Aug 2017 11:02:04 +0000 (13:02 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 16 Aug 2017 11:37:40 +0000 (13:37 +0200)
src/test/java/de/juplo/jpa/converters/JPAConverterTest.java
src/test/resources/META-INF/date.xml

index edf63c2..0bc8b1d 100644 (file)
@@ -125,8 +125,8 @@ public class JPAConverterTest
     persist(date);
     date = retrieve(Date.class, new PrimaryKey(date));
     assertEquals(ld, date.getDate());
-    // assertEquals(zdt, date.getStart());
-    // assertEquals(zdt, date.getEnd());
+    assertEquals(zdt, date.getStart());
+    assertEquals(zdt, date.getEnd());
   }
 
 
index 31b2214..92877f7 100644 (file)
@@ -9,6 +9,12 @@
   <entity class="Date" access="FIELD">
     <discriminator-value>17</discriminator-value>
     <attributes>
+      <basic name="start">
+        <column name="date_start"/>
+      </basic>
+      <basic name="end">
+        <column name="date_end"/>
+      </basic>
       <basic name="teaser">
         <column length="1023"/>
       </basic>