[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - UPDATE statement not supported?

2006-06-29 Thread jetzzz
I am using jboss-4.0.4 RC1 with Hibernate 3.1.2 try to excute a simple Update SQL in my app through normal routine something like q= em.createQuery("update ."); (the statement is very basic) q.getSingleResult(); no alias in the query, I got "not supported for DML operations" exception my

[JBoss-user] [EJB 3.0] - EJBQL help

2006-06-28 Thread jetzzz
there are parent/child tables in the persist level of my app. I am trying to use EJBQL to update the child table, link one row to the parent something like this: q = em.createQuery("update child c set c.parent = :PAR where c.id=1"); q.setParameter("PAR", parent); here parent is a exsisting deta

[JBoss-user] [JBoss Seam] - reverseengineering problem

2006-03-17 Thread jetzzz
I am useing eclipse 3.1.2, jboss 4.0.4RC1 and seam 1.0 beta2 and try to use the reverseengineering, just downloaded nightly build 200603141225. but whenever I want to create hibernate consloe config, eclipse pop out error window with title Hibernate Console Error Reason: Details java.lang.Nu

[JBoss-user] [JBoss Seam] - Re: newbie question, plz help

2006-03-16 Thread jetzzz
ya, that might be the reason I managed to slove the import problem by include the annotation jar into the project. but the structure of the project is a mess. and I got ERROR [[/seamapp]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListen

[JBoss-user] [JBoss Seam] - newbie question, plz help

2006-03-16 Thread jetzzz
I just tried the reverse engineering tool it says org.jboss.annotation.ejb.LocalBinding can't reslove what jar I need to include into classpath? thanks alot. and I don't know if it's only me, my generated code doesn't have folder, all code, pages have been put into package format for some reason

[JBoss-user] [EJB 3.0] - InitialContext lookup problem

2006-03-02 Thread jetzzz
the following code works in 4.0.3 but not in 4.0.4RC1 InitialContext ctx = new InitialContext(); return (sessionDomainMng) ctx.lookup(sessionDomainMng.class.getName()); I got exception: 10:49:49,784 ERROR [STDERR] javax.naming.NameNotFoundException: org.jboss.pdns.sessionejb.sessionDomainMng no