Could not synchronize database state with session问题,说保存空,可以在post.hbm.xml文件里设置inverse="true",这样就可以完美的解决这个问题,主要是person_post里的post为联合主键,它不能为空
分类:
数据库 时间:
2014-08-25 14:53:34
阅读次数:
291
A person decide cheap ghd straighteners to ladies with shorter hair tar and feather me for stating my Belief on this matter, Ok, i'll offer a catch: A...
分类:
其他好文 时间:
2014-08-25 14:45:44
阅读次数:
249
insert into reg_user (id,name,password,area_code,reg_time,first_pswd,record_type)
select l.reg_user_id,l.entry_person,'4QrcOUm6Wau+VuBX8g+IPg==',l.area_code,sysdate,'123456',l.type
from lo...
分类:
数据库 时间:
2014-08-25 13:27:04
阅读次数:
248
首先要生成表,得先有实体类,以Person.java为例:/** * * @author Administrator * @hibernate.class table="T_Person" */public class Person { /** * @hibernate.id...
分类:
系统相关 时间:
2014-08-25 11:21:44
阅读次数:
242
================================Person.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Collections;
namespaceConsoleApplication2
{
publicclassPerson:IComparable<Person>,IForm..
分类:
其他好文 时间:
2014-08-25 02:20:54
阅读次数:
197
定义父类// 原型模式与构造函数组合function Person(name,age,job) { // 构造函数模式定义实例属性 this.name = name; this.age = age; this.job = job;}Person.prototype = { //原型模式定义方法和共享...
分类:
Web程序 时间:
2014-08-24 17:57:52
阅读次数:
123
思路:定义好Person的数据结构,按照身高和体重排好序。solutions[i]代表以person[i]结尾的能够叠起的最多人的解。solutions[0]初始化,然后求从1~n的情况。import java.util.ArrayList;import java.util.Collections;...
分类:
其他好文 时间:
2014-08-24 16:37:32
阅读次数:
241
第一个规则是,和公有继承相反,如果两个类之间的继承关系为私有,编译器一般不会将派生类对象(如Student)转换成基类对象(如Person)第二个规则是,从私有基类继承而来的成员都成为了派生类的私有成员,即使它们在基类中是保护或公有成员,即派生类对象不能访问基类的所有成员class person{}...
分类:
其他好文 时间:
2014-08-24 14:07:32
阅读次数:
126
此文来记录学习笔记一个简单ext继承的栗子Ext.onReady(function () {Ext.define('Person',{ config:{ name:'z3' } , constructor:function(config){ var me...
分类:
Web程序 时间:
2014-08-24 00:15:01
阅读次数:
227
package mainimport "fmt"type PersonInfo struct { ID string Name string Address string}func main() { var personDB map[string]Person...
分类:
其他好文 时间:
2014-08-21 14:51:34
阅读次数:
195