hibernate problems when using 1

2010-08-18  来源:本站原创  分类:Java  人气:164 

Exception in thread "main" java.lang.NoClassDefFoundError: javax / persistence / Cacheable

Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable

Wrong reasons, javax.persistence.Cacheable is JPA 2.0 specification thing!

Need to add hibernate-distribution-3.5.0-Final \ lib \ jpa directory hibernate-jpa-2.0-api-1.0.0.Final.jar

This article comes from CSDN blog, reproduced, please indicate the source: http://blog.csdn.net/nokiaisacat/archive/2010/05/07/5566566.aspx

相关文章
  • use with oracle sequence hibernate problems 2011-03-12

    Usual number field is often used in the project type, using the hibernate process found a strange problem <generator> <param name="sequence"> seq_customer </ param> </ Generator> Automatic way using a database sequence, i

  • gwt integration with hibernate problems encountered 2010-03-25

    ------------------------ ---------------------- March 25 --------------- Always reported so one exception: com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentBag' was not included in the set of types which

  • Hibernate problems encountered 2010-05-27

    1 Executive to produce the half-way exception: org.hibernate.exception.SQLGrammarException: could not execute query Internet search a lot, basically said: 1, *. hbm.xml files and database tables of the corresponding interest, and the type of correspo

  • Oracle and Hibernate problems 2010-12-20

    I found Oracle (Oracle Corporation) is not so cool with it (compared with Mysql and Sqlserver2000), Oracle database primary key sequences with the Sequence control, Mysql and Sqlserver2000 auto-increment is used to automatically increment the primary

  • hibernate problems when using 1 2010-08-18

    Exception in thread "main" java.lang.NoClassDefFoundError: javax / persistence / Cacheable Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable Wrong reasons, javax.persistence.Cacheable is JPA 2.0 specification thing! Need t

  • collection of mapping and inverse cascade hibernate Detailed 2011-08-18

    1, Where is the use of cascade ="..."? cascade attribute does not have to use many to many relationships, and with it just let us in when you insert or delete as more convenient, as long as the source of the cascade on insert or delete, all rela

  • struts2 Learning Network 2010-04-29

    Struts2 an entry-level small example (Action, the interceptor used) http://www.javaeye.com/topic/205941 The first step into the world struts2 http://www.javaeye.com/topic/207880 http://shenzhenchufa.blog.51cto.com/730213/262276 struts2 Notes 2 jQuery

  • Finally use the data persistence layer hibernate finished a summary of some of the problems encountered under 2009-08-01

    Opened the door not too interested in this semester's class, called a "practical writing software documentation," and is a teacher does not like to say that more depressing is that two subjects also taught us, there is a what is called "tea

  • struts + spring + hibernate integration problems: TilesPlugin: Specified RequestProcessor not comp 2010-07-21

    Ssh in the integration process problems and solutions: 1, Serious: Servlet / loginssh threw load () exception javax.servlet.UnavailableException: Parsing error processing resource path / WEB-INF/struts-config.xml Analysis in the struts-config.xml err

  • hibernate cascade delete encountered problems and solutions 2010-08-28

    We know that in dealing with hibernate-many of the problems, we generally in the configuration file Zhong stated below their relations and operations Rules . For example, when doing Web page, the article will list owners and Bo is the one to many rel

  • struts2 hibernate mysql Jump Chinese problems and dynamic page issues 2010-09-30

    Learn to solve small problems recently, such as mysql Chinese problem, and dynamic page jump problem, to be a record. Internet to find a lot of information, read a lot of books. The first records about mysql Chinese problem. But this guy out of my he

  • Value problems on hibernate, Guiqiu 2010-10-19

    Exception: org.hibernate.exception.GenericJDBCException: could not execute query at org.hibernate.exception.SQLStateConverter.handledNonSpecificException (SQLStateConverter.java: 103) at org.hibernate.exception.SQLStateConverter.convert (SQLStateConv

  • Hibernate in the problems 2010-03-29

    Today, the project encountered hibernate in query result set is empty issue. String searchModules = "select m from Module m where m.id in (?)"; return find(searchModules, temp.keySet()); temp is a map After this implementation throws an exceptio

  • Hibernate query two or more foreign key problems associated with the query 2009-10-16

    Object-relational ReceiptUnqualifiedRecord - poDetail - Po - Company Detail the relationship is as follows: ReceiptUnqualifiedRecord In /** * Order details * * @hibernate.many-to-one * * @struts.dynaform-field * @return */ public PoDetail getPoDetail

  • Json-lib jQuery ext hibernate shared with the dead cycle solutions to problems 2010-03-30

    Error net.sf.json.JSONException: There is a cycle in the hierarchy! net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStrategy.handleRepeatedReferenceAsObject(CycleDetectionStrategy.java:97) net.sf.json.JSONObject._fromBean(JSONObject.java:

  • Flex integration as well as Hibernate's Lazy problems Spring.Hibernate ultimate solution 2010-05-21

    Original article from my blog: ( http://emavaj.blog.163.com ) If the Flex with Spring + Hibernate communication, then the Lazy Hibernate is to bring Blazeds error of the relationship ... because cglib proxy Even if you use Fetch to crawl out of the d

  • Hibernate Native SQL mapping to solve problems 2010-06-01

    Where in the questionnaire and forums, often see people ask how to use the local SQL query results out of the value of the object mapped to the problem, here on the methods provided by Hibernate to be a conclusion. Premise, there are no delays in loa

  • 2. Hibernate and flex the small problems 2010-06-25

    hibernate With a callback function to perform this statement reported OPERATOR_ID column not found, but to break out of the sql database is implemented up sql = "SELECT so.id AS id FROM system_operator AS so LEFT JOIN system_operator_permission AS so

  • Hibernate caching, data synchronization problems. 2010-10-14

    Education about how to hibernate cache synchronized with the database :2008 -07-23 12:34:40 Source: Forum order of: Edit: chinaitzhe when the database record by external changes, a cache session and database to keep pace, and secondary cache and how

  • Problems with Hibernate + MYSQL database (Hibernate database connection timeout autoReconnect = true) 2010-11-21

    Use Hibernate + MYSQL database development, link timeout problem: com.mysql.jdbc.CommunicationsException: The last packet successfully received from the server was58129 seconds ago.The last packet sent successfully to the server was 58129 seconds ago