I am using your example provided on github, and I want to create another
table called LearningAssistants. I followed the example code closely and
modify the config.xml to create the LearningAssistants table.
However I am getting this error: ERROR [19:49:24.930] [dw-18 - GET /LA]
i.d.j.e.LoggingExceptionMapper - Error handling a request:
5d3e10b6de09377a
org.hibernate.MappingException: Named query not known:
com.example.helloworld.core.LA.findAll
However this named query does exist in my LA class. I followed the
person/personDAO class very closely.
sample code:
@Entity
@Table(name = "LearningAssistants")
@NamedQueries(
{
@NamedQuery(
name = "com.example.helloworld.core.LA.findAll",
query = "SELECT p FROM LA p"
)
}
)
public class LA{ ....
What could be causing the error and how do I fix it?
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.