04 2012 档案

摘要:Ext.require(["Ext.grid.*", "Ext.data.*"]);Ext.onReady(function() { Ext.QuickTips.init(); Ext.define("MyData", { extend : "Ext.data.Model", fields : ["id", { name : "id", mapping : "id" }, { name : "username", mapping : & 阅读全文
posted @ 2012-04-28 16:42 园林鸟 阅读(4757) 评论(0) 推荐(0)
摘要:在生成表的时候遇到了这样一个问题,将主键放到父类中去,其他的实体表继承主键@Entity@Table(name = "base_table")public class BaseEntity { public BaseEntity() { } @Id @GenericGenerator(name = "idGenerator", strategy = "uuid") @GeneratedValue(generator = "idGenerator") @Column(name = "id", un 阅读全文
posted @ 2012-04-20 23:24 园林鸟 阅读(3658) 评论(0) 推荐(0)
摘要:The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.GeneratedConstructorAccessor15.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.ja 阅读全文
posted @ 2012-04-20 10:33 园林鸟 阅读(49922) 评论(0) 推荐(0)
摘要:@ManyToMany(mappedBy = "friends", cascade = { CascadeType.PERSIST }, fetch = FetchType.LAZY) private List<User> owns; @ManyToMany(cascade = { CascadeType.PERSIST }, fetch = FetchType.LAZY) @JoinTable(name = "friends_middle", joinColumns = { @JoinColumn(name = "friendsI 阅读全文
posted @ 2012-04-19 19:32 园林鸟 阅读(2592) 评论(2) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.sprin 阅读全文
posted @ 2012-04-11 17:13 园林鸟 阅读(1568) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.sprin 阅读全文
posted @ 2012-04-11 17:08 园林鸟 阅读(1515) 评论(0) 推荐(0)