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 : &
阅读全文
摘要:在生成表的时候遇到了这样一个问题,将主键放到父类中去,其他的实体表继承主键@Entity@Table(name = "base_table")public class BaseEntity { public BaseEntity() { } @Id @GenericGenerator(name = "idGenerator", strategy = "uuid") @GeneratedValue(generator = "idGenerator") @Column(name = "id", un
阅读全文
摘要: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
阅读全文
摘要:@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
阅读全文
摘要:<?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
阅读全文
摘要:<?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
阅读全文

浙公网安备 33010602011771号