/**
* @deprecated Use {@link org.hibernate.boot.registry.StandardServiceRegistryBuilder} instead
*/
@Deprecated
public class ServiceRegistryBuilder extends org.hibernate.boot.registry.StandardServiceRegistryBuilder
那个大兄弟说对了,真的是要用父类
* @deprecated Use {@link org.hibernate.boot.registry.StandardServiceRegistryBuilder} instead
*/
@Deprecated
public class ServiceRegistryBuilder extends org.hibernate.boot.registry.StandardServiceRegistryBuilder
那个大兄弟说对了,真的是要用父类
2016-11-02
看了源码,上面写的是
public interface StandardServiceRegistry extends ServiceRegistry {
}
ServiceRegistry才是父类接口。。
public interface StandardServiceRegistry extends ServiceRegistry {
}
ServiceRegistry才是父类接口。。
2016-11-02
按照老师 所述 , <component name="address" class="com.dg.Address">
<property name="postcode" column="POSTCODE"></property>
<property name="phone" column="PHONE"></property>
<property name="address" column="ADDRESS"></property>
</component>
<property name="postcode" column="POSTCODE"></property>
<property name="phone" column="PHONE"></property>
<property name="address" column="ADDRESS"></property>
</component>
2016-11-01
当我进行testSaveStudentWithCurrentSession方式时会抛出org.hibernate.SessionException: Session is closed!错误
2016-11-01
我来说一下我的错误,3个,第一次个我没有把Hibernate.cfg.xml里面的created换成update,第二个是我的创建的照片导入的包不对,应该是import java.sql.Blob;我导入错误了,并且生成Student.hbm.xml也是错误的,第三个是主键错误,报ERROR: Duplicate entry '1' for key 'PRIMARY'错误,包主键改了就可以了。
2016-10-31