Ola pessoal estou tantando fazer um join em uma classe com @EmbeddedId, ta tentei varias coisas e nao deu certo. Por favor, me deem um help!
O problema ocorre com o @OneToOne feito na classe AbreProcessoBy.
@Embeddable
public class CapadiByPk extends Modelo implements Serializable{
private String str_codigotipounidadeoper;
private String str_codigounidadeoper;
private int li_sequenciadi;
Getters, Setters, Equals e HashCode
@Entity
@Table(name="Capadi")
public class CapadiBy implements Serializable{
@EmbeddedId
private CapadiByPk capadiByPk;
private Date dt_dataaberturadi;
private Integer li_permanencia;
Getters, Setters, Equals e HashCode
Esse é o erro
10:39:33,641 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
10:39:38,547 ERROR [STDERR] javax.persistence.EntityNotFoundException: Unable to find modelo.bysoft.CapadiBy with id modelo.bysoft.CapadiByPk@e1f4be2a
10:39:38,563 ERROR [STDERR] at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:113)
10:39:38,563 ERROR [STDERR] at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:171)
10:39:38,563 ERROR [STDERR] at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
10:39:38,563 ERROR [STDERR] at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
10:39:38,578 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
10:39:38,594 ERROR [STDERR] at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873)
10:39:38,594 ERROR [STDERR] at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590)
10:39:38,594 ERROR [STDERR] at org.hibernate.type.EntityType.resolve(EntityType.java:412)
10:39:38,594 ERROR [STDERR] at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.doQuery(Loader.java:752)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.doList(Loader.java:2228)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.Loader.list(Loader.java:2120)
10:39:38,594 ERROR [STDERR] at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)
10:39:38,594 ERROR [STDERR] at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)
10:39:38,594 ERROR [STDERR] at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
10:39:38,594 ERROR [STDERR] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)
10:39:38,594 ERROR [STDERR] at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
10:39:38,594 ERROR [STDERR] at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:67)
10:39:38,594 ERROR [STDERR] at controle.bysoft.IntegraBean.integrar(IntegraBean.java:58)
10:39:38,594 ERROR [STDERR] at controle.util.JobIntegraBysoft.execute(JobIntegraBysoft.java:44)
10:39:38,594 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
10:39:38,594 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)