Home » Search

About createNamedQuery

11-19 of 19Refresh
Issue
3

Named Query Exception

(EMImpl.java:920) at com.objectdb.jpa.EMImpl.createNamedQuery(EMImpl.java:850) at com.xxx.objectdb.ObjectDBRulesEngineDAOImpl.createNamedQuery(ObjectDBRulesEngineDAOImpl.java:258) at com.xxx
Forum
2

Cast exception?

I'm getting a weird exception: java.lang.ClassCastException: database.entity.Player cannot be cast to database.entity.Player From just fetching a single result: TypedQuery query = em.createNamedQuery("Player.getPlayer", Player.class); Player player = query.setParameter("id", uid
Forum
2

com.objectdb.o.InternalException: Unexpected internal exception

(Person.class); List pList = em.createNamedQuery("getPersonByName",Person.class).setParameter
Forum
2

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

; } public int getNumberOfMapItems(EntityManager em) { Query q = em .createNamedQuery
Forum
2

Object comparation never matches

a query: Customer customer = em.createNamedQuery("authentication.getByPrincipal", Customer.class
Forum
2

openejb jpa jaas module

.createNamedQuery("UserPrincipal.findAll", UserPrincipal.class); List
Forum
2

Should derived fields of an EmbeddedId be manually maintained by app code?

getNumberOfMapItems(EntityManager em) { Query q = em .createNamedQuery("numberOfMapItems"); q
Forum
2

JPA - ExceptionInInitializerError when creating EntityManager

> emailSettings = emTemp.createNamedQuery("EmailSettings.findByName", EmailSettings.class
Forum
2

Query can't see recently persisted object

; } ... } ... TypedQuery query = mem.createNamedQuery("MyObject.findByOid", MyObject.class); query