[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1367) double ds.xml in Seam War project

Max Andersen (JIRA) jira-events at lists.jboss.org
Mon Nov 26 15:01:18 EST 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1367?page=comments#action_12389175 ] 
            
Max Andersen commented on JBIDE-1367:
-------------------------------------

Better test (will actually check if you can persist/load the specific entity:

	@Test
	   public void testPersistenceWorking() throws Exception
	   {
	      new FacesRequest() {

	    	  
	         @Override
	         protected void invokeApplication() throws Exception
	         {
	            EntityManagerFactory pc = (EntityManagerFactory) getValue("#{s2EntityManagerFactory}");
	            assert pc!=null;
	            
	            EntityManager em = pc.createEntityManager();
	            
	            Session s = (Session) em.getDelegate();
	            
	            System.out.println(s.getSessionFactory());
	            
	            Customer c = new Customer();
	            s.persist(c);
	            
	            Assert.assertEquals(s.createQuery("from java.lang.Object").list().size(),1);
	            
	            s.delete(c);
	            
	         }
	         
	      }.run();
	   }


> double ds.xml in Seam War project
> ---------------------------------
>
>                 Key: JBIDE-1367
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1367
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.CR1
>            Reporter: Max Andersen
>         Assigned To: Max Andersen
>            Priority: Blocker
>             Fix For: 2.0.0.GA
>
>
> ds.xml ends up in both resources/ds.xml and in src/model/web-inf/ds.xml
> only one of them should be enough.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list