This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to query a thirt-party datatabase table with Hibernate CriteriaBuilder/JPA?

sam White
Ranch Hand
Posts: 229
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

With Spring 3.5.1, I want to write a Service Facade class and a Service Entity class to query a database table that come with Liferay 5.2.8 (EE SP4). But there is some problem when the framework try to hook up with the entity bean. When I deploy the WAR file to liferay hot deploy directory, it thrown the following exception:

Caused by: org.springframework.dao.EmptyResultDataAccessException: No entity found for query
at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(
at org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect.ajc$afterThrowing$org_springframework_orm_jpa_aspectj_JpaExceptionTranslatorAspect$1$18a1ac9(JpaExceptionTranslatorAspect.aj:15)
at com.ix.msp.persistence.jpa.ServiceFacade.findByName(
at com.ix.msp.persistence.jpa.ServiceFacade.findByName(
at com.ix.msp.domain.loader.VocabularyLoader.afterPropertiesSet(

Here is the file:

The file:

Any suggestion is much appreciated.

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic