This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: Enitity Bean - Deploying ejb3 jar filetriathlon98 Jul 30, 2005 4:11 PM (in response to evan3107)This can be fixed by using hibernate.hbm2ddl.auto=update 
 Joachim
- 
        2. Re: Enitity Bean - Deploying ejb3 jar fileevan3107 Jul 30, 2005 9:19 PM (in response to evan3107)That did the trick. Thanks!!! 
- 
        3. Re: Enitity Bean - Deploying ejb3 jar filejustinb Aug 2, 2005 8:25 AM (in response to evan3107)When I do this, it takes forever to redeploy. Seems to hang for a few minutes on each table (using 4.0.3RC1 on Oracle)... 
- 
        4. Re: Enitity Bean - Deploying ejb3 jar fileataud Aug 2, 2005 6:39 PM (in response to evan3107)In class "Alfa", should we use "createNamedQuery" method of EntityManager to get the request ? 
 @NamedQueries({
 @NamedQuery(
 name="findAllABeans",
 queryString="SELECT OBJECT(o) FROM a AS o ORDER BY o.info DESC"
 )
 @NamedQuery(
 name="findAllCBeansByInfo",
 queryString="SELECT OBJECT(o) FROM c AS o WHERE o.info=?1"
 )
 })
 @Stateless
 public class Alfa {
 private EntityManager em;
 public void mysMethod() {
 ...
 Query=manager.createNamedQuery("findAllCBeansByInfo");
 ....
 }
 }
 
     
     
    