I am a Solivagant
Lofter    Posts     新文章     文章管理     新日记     日记管理

摘要: <!-- 消除:Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException --> <property name="hiberna 阅读全文
posted @ 2018-06-27 23:01 宛如ZZ 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 一对多需要在一的类配置多的类的set泛型集合. 多的一端需要添加一的类作为属性,其和数据库对应的是对应表的主键. 一个购物车有多个商品,购物车有个cart_id作为主键,商品除了自己的items_id作为主键外,还有一个cart_id作为外键. 需要在Cart类中声明一个Set<Item> item 阅读全文
posted @ 2018-06-27 21:11 宛如ZZ 阅读(854) 评论(0) 推荐(0) 编辑
摘要: Do you feel like you're about to drown The wave is rushing over you throw you onto now The wave is rushing over you throw you onto now I remember thin 阅读全文
posted @ 2018-06-27 20:49 宛如ZZ 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 两个实体类对应的数据库table需要拥有相同的主键. 比如A类和B类,A有属性id,B类也有相同属性id. 在A类中设置属性 B b; 在B类中设置属性 A a; 在表格A和B中,id都是主键. 在B中id不仅是主键还是外键. 此时对于A的配置文件如: <id name="id" column="i 阅读全文
posted @ 2018-06-27 17:31 宛如ZZ 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 作曲 : Katy Perry, Łukasz Gottwald, Max Martin, Joshua Coleman 作词 : Katy Perry, Łukasz Gottwald, Max Martin, Joshua Coleman 作词 : Katy Perry, Łukasz Gott 阅读全文
posted @ 2018-06-27 16:09 宛如ZZ 阅读(359) 评论(0) 推荐(0) 编辑
摘要: new BigDecimal(int i); BigDecimal.parseBigDecimal(String.valueOf(int i)); 阅读全文
posted @ 2018-06-27 10:49 宛如ZZ 阅读(30562) 评论(1) 推荐(0) 编辑