hibernate
jimoshazhouleng360
这个作者很懒,什么都没留下…
展开
-
hibernate、java、数据库对应类型
Java数据类型Hibernate数据类型标准SQL数据类型(PS:对于不同的DB可能有所差异)byte、java.lang.BytebyteTINYINTshort、java.lang.ShortshortSMALLINTint、java.lang.IntegerintegerINGEGERlong、java.l翻译 2014-12-14 22:27:18 · 424 阅读 · 0 评论 -
hibernate只查询实体类中部分属性的实现方法
参考链接:http://songjianyong.iteye.com/blog/1709584原创 2015-04-09 11:25:35 · 646 阅读 · 0 评论 -
命令行导入mysql的sql数据
1,命令行中进入mysql,mysql -u root -p2,密码:xxxx3,查看数据库表:show databases;4,选择表:use xxxx;5,source D:\\xxxx.sql附录:如果出现:Duplicate entry '127' for key 'PRIMARY' truncate table XXXX即可原创 2015-06-01 15:55:18 · 336 阅读 · 0 评论 -
java.sql.SQLException: Access denied for user 'root'@'gy-pc' (using password: YES)
远程访问mysql报错: java.sql.SQLException: Access denied for user 'root'@'gy-pc' (using password: YES) 解决方案:权限不足,授权即可,其他用户也是如此。mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourp原创 2015-08-21 10:00:59 · 562 阅读 · 0 评论