2 Replies Latest reply on Dec 23, 2005 2:34 PM by Jonathan Ekwempu

    <table-name> is not mapped

    Jonathan Ekwempu Newbie

      I am trying to run a query in EJB3.0 but I am getting an exception as displayed below. I can insert records into the table (Feedback) but can not perform any queries againts the table. Does any one know what I am missing? I am using MySql 5.0, mysql-connector-java-3.1.11-bin.jar and JBoss 4.0.3SP1.

      Thanks


      09:37:05,767 INFO [STDOUT] javax.ejb.EJBException: null; CausedByException is:
      Feedback is not mapped. [from Feedback p where p.firstName LIKE :firstNa
      me and p.lastName LIKE :lastName and p.email = :email]
      09:37:05,777 INFO [STDOUT] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptio
      nInOurTx(Ejb3TxPolicy.java:46)
      09:37:05,777 INFO [STDOUT] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(T
      xPolicy.java:70)
      09:37:05,777 INFO [STDOUT] at org.jboss.aspects.tx.TxInterceptor$Required.i
      nvoke(TxInterceptor.java:134)
      09:37:05,777 INFO [STDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:98)
      09:37:05,777 INFO [STDOUT] at org.jboss.aspects.tx.TxPropagationInterceptor
      .invoke(TxPropagationInterceptor.java:61)
      09:37:05,777 INFO [STDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:98)
      09:37:05,777 INFO [STDOUT] at org.jboss.ejb3.stateless.StatelessInstanceInt
      erceptor.invoke(StatelessInstanceInterceptor.java:39)
      09:37:05,777 INFO [STDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invo
      keNext(MethodInvocation.java:98)
      09:37:05,777 INFO [STDOUT] at org.jboss.aspects.security.AuthenticationInte