Hibernate first experience Cat quick start - the problem set (1)

xiaoxiao2021-03-06  17

1. Be sure to pay attention to hibernate2.jar to copy under Web-INF / LIB, if you put it under the LIB of Tomcat, it will cause a wonderful problem. 2.Tomcat5.0.x Note Copy Jta.jar Under WEB-INF / LIB, Tomcat4.x is not used, it is clear that JTA.jar in the Hibernate document, because jta.jar is brought by most Application Sever. The most common of this package is: java.lang.noclassdeffounderror: Javax / Transaction / Synchronization error. 3. Note that the primary key CAT_ID in the CAT table should be char (32), and cannot be other integer, because the uUid.hex generates the primary key, the algorithm generates the identifier of the string type, for a 32-bit 16 credit numbers string. If not, often appear: Net.sf.hibernate.exception.constraintviolationException: Could Not Execute JDBC Batch Update error reference:

1.Hibernate first experience Cat quick start

转载请注明原文地址:https://www.9cbs.com/read-42022.html

New Post(0)