I was curious if anyone is getting the error below when running the entity query.
The weird thing is. It's kind of random. And i know the object is there because I have an EntityManager query called at startup to do some initialization
This is the basic definition of the page -
Not sure why but it seemed to start when we added a new column to the database, but I am guessing that is coincidence.
we are using Seam 2.0.2
<framework:entity-query name="matchingSchedules" ejbql="Select s From SubstanceJobSchedule s Where s.workStream = 'MATCHING' And s.customCron = false " entity-manager="#{entityManager}"> </framework:entity-query> <event type="org.jboss.seam.afterTransactionSuccess"> <action execute="#{matchingSchedules.refresh}" /> </event>
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: SubstanceJobSchedule is not mapped [Select s From SubstanceJobSchedule s Where s.workStream = 'MATCHING' And s.customCron = false ] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:616) at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95) at org.jboss.seam.persistence.EntityManagerProxy.createQuery(EntityManagerProxy.java:79)