Author: hardy.ferentschik
Date: 2008-06-29 09:44:43 -0400 (Sun, 29 Jun 2008)
New Revision: 14822
Modified:
entitymanager/trunk/src/java/org/hibernate/ejb/event/EntityCallbackHandler.java
entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java
entitymanager/trunk/src/test/org/hibernate/ejb/test/PackagedEntityManagerTest.java
Log:
* Cleanup
* Enabled svn keyword substitution
Modified: entitymanager/trunk/src/java/org/hibernate/ejb/event/EntityCallbackHandler.java
===================================================================
---
entitymanager/trunk/src/java/org/hibernate/ejb/event/EntityCallbackHandler.java 2008-06-29
13:38:37 UTC (rev 14821)
+++
entitymanager/trunk/src/java/org/hibernate/ejb/event/EntityCallbackHandler.java 2008-06-29
13:44:43 UTC (rev 14822)
@@ -1,3 +1,4 @@
+// $Id:$
/*
* JBoss, the OpenSource EJB server
*
@@ -24,6 +25,7 @@
*
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
*/
+@SuppressWarnings({"unchecked", "serial"})
public class EntityCallbackHandler implements Serializable {
private HashMap<Class, Callback[]> preCreates = new HashMap<Class,
Callback[]>();
private HashMap<Class, Callback[]> postCreates = new HashMap<Class,
Callback[]>();
Property changes on:
entitymanager/trunk/src/java/org/hibernate/ejb/event/EntityCallbackHandler.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ Id
Modified: entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java
===================================================================
--- entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2008-06-29
13:38:37 UTC (rev 14821)
+++ entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2008-06-29
13:44:43 UTC (rev 14822)
@@ -1,4 +1,4 @@
-//$
+// $Id:$
package org.hibernate.ejb.packaging;
import java.util.Set;
Property changes on:
entitymanager/trunk/src/java/org/hibernate/ejb/packaging/JarVisitor.java
___________________________________________________________________
Name: svn:keywords
+ Id
Modified:
entitymanager/trunk/src/test/org/hibernate/ejb/test/PackagedEntityManagerTest.java
===================================================================
---
entitymanager/trunk/src/test/org/hibernate/ejb/test/PackagedEntityManagerTest.java 2008-06-29
13:38:37 UTC (rev 14821)
+++
entitymanager/trunk/src/test/org/hibernate/ejb/test/PackagedEntityManagerTest.java 2008-06-29
13:44:43 UTC (rev 14822)
@@ -33,6 +33,7 @@
/**
* @author Gavin King
*/
+@SuppressWarnings("unchecked")
public class PackagedEntityManagerTest extends TestCase {
public Class[] getAnnotatedClasses() {
@@ -228,81 +229,6 @@
emf.close();
}
-// This test does not make sense anymore, validator being autoregistered at the HAN
level
-// public void testListenersOverridingCfgXmlPar() throws Exception {
-// EntityManagerFactory emf = Persistence.createEntityManagerFactory(
"cfgxmlpar", new HashMap() );
-// EntityManager em = emf.createEntityManager();
-// Cat cat = new Cat();
-// cat.setName( "123"); //validator catch that
-// em.getTransaction().begin();
-// try {
-// em.persist( cat );
-// em.flush();
-// }
-// catch (InvalidStateException e) {
-// fail("Shouldn't call the ValidatorEvent listener");
-// }
-// catch (PersistenceException e) {
-// if ( ! (e.getCause() instanceof JDBCException ) ) {
-// fail("Unexpected exception: " + e);
-// }
-// }
-// em.getTransaction().rollback();
-//
-// em.close();
-// emf.close();
-// }
-
- //EM TRANSACTION
-// public void testEntityManager() {
-//
-// Item item = new Item( "Mouse", "Micro$oft mouse" );
-//
-// EntityManager em = factory.createEntityManager();
-// em.getTransaction().begin();
-// em.persist( item );
-// assertTrue( em.contains( item ) );
-// em.getTransaction().commit();
-//
-// assertFalse( em.contains( item ) );
-//
-// em.getTransaction().begin();
-// item = (Item) em.createQuery( "from Item where descr like 'M%'"
).getSingleResult();
-// assertNotNull( item );
-// assertEquals( "Micro$oft mouse", item.getDescr() );
-// item.setDescr( "Micro$oft wireless mouse" );
-// assertTrue( em.contains( item ) );
-// em.getTransaction().commit();
-//
-// assertFalse( em.contains( item ) );
-//
-// em.getTransaction().begin();
-// item = (Item) em.find( Item.class, "Mouse" );
-// assertNotNull( item );
-// em.getTransaction().commit();
-//
-// item = em.find( Item.class, "Mouse" );
-// assertFalse( em.contains( item ) );
-//
-// item = (Item) em.createQuery( "from Item where descr like 'M%'"
).getSingleResult();
-// assertNotNull( item );
-// assertFalse( em.contains( item ) );
-//
-// em.getTransaction().begin();
-// assertEquals("Explicit package in <class> should work", 1,
em.createNamedQuery( "countItems" ).getSingleResult() );
-// em.getTransaction().commit();
-//
-// em.getTransaction().begin();
-// item = em.find( Item.class, "Mouse" );
-// assertNotNull( item );
-// assertTrue( em.contains( item ) );
-// assertEquals( "Micro$oft wireless mouse", item.getDescr() );
-// em.remove( item );
-// em.getTransaction().commit();
-//
-// em.close();
-// }
-
public void testExtendedEntityManager() {
Item item = new Item( "Mouse", "Micro$oft mouse" );
Property changes on:
entitymanager/trunk/src/test/org/hibernate/ejb/test/PackagedEntityManagerTest.java
___________________________________________________________________
Name: svn:keywords
- Author Date Id Revision
+ Id
Show replies by date