Hibernate的对象有3种状态,分别为:瞬时态(Transient). 持久态(Persistent).脱管态(Detached).处于持久态的对象也称为PO(Persistence Object),瞬时对象和脱管对象也称为VO(Value Object). 瞬时态 由new命令开辟内存空间的java对象, eg. Person person = new Person("xxx", "xx"); 如果没有变量对该对象进行引用,它将被java虚拟机…
<?php #DB 高级查询 // select * from table where A and B or C $all_data = DB::table("shopnc_goods_common") ->where("base_goods_commonid", -1) ->where('goods_name', 'like', '%' . $keywords . '%') ->orWhere('goods_jingle', 'like',…