摘要:
Hibernate: create table City (cityId varchar(255) not null, cityName varchar(200), remark longtext, versionNum integer, country_countryID varchar(255)... 阅读全文
摘要:
MySQL 5中,出现错误提示:Field 'id' doesn't have a default value解决方法一:打开my.ini,查找sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"修改为sq... 阅读全文
摘要:
需要使用persistence.xml进行配置。 1 2 3 4 org.hibernate.ejb.HibernatePersistence 5 dataSource --> 6 net.etec.ftm.domain.City 7 net.etec.ftm.do... 阅读全文
Could not open JPA EntityManager for transaction; nested exception is java.lang.NullPointerException
摘要:
1 改为1 JTA 在jee环境下运行RESOURCE_LOCAL在jse环境下使用 阅读全文
摘要:
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" ... 阅读全文