Category Archives: Hibernate

About hibernate.current_session_context_class

in hibernate.cfg.xml, we can use hiberna … 继续阅读

发表在 Hibernate | 留下评论

Hibernate: Merge detached object

1. 如果Session Context中存在与detached object … 继续阅读

发表在 Hibernate | 留下评论

Hibernate: Lock() to re-attache a detached object

Session sess; Transaction tx = null; try … 继续阅读

发表在 Hibernate | 留下评论

Hibernate: Object Status Chart, Very Useful!

发表在 Hibernate | 留下评论

Hibernate: two tables with an intermediate table.

<join table="user_emails" o … 继续阅读

发表在 Hibernate | 留下评论

java.sql.SQLException:Value ‘0000-00-00’ can not be represented as java.sql.Date

MySQL 中的timestamp类型字段为空时,从数据库取值会报上述异常 通过 … 继续阅读

发表在 Hibernate | 留下评论

org.hibernate.id.IdentifierGeneratorFactory$2 cannot be cast to java.lang.Long

<idbag name="addrs" table=& … 继续阅读

发表在 Hibernate | 留下评论

java.lang.IllegalArgumentException: Positional parameter does not exist: 1 in query

   HQL中的参数 根据你使用的参数方式而有所不同,例如   HQL1 = & … 继续阅读

发表在 Hibernate | 留下评论

exception is org.hibernate.MappingException: Cannot use identity column key generation with mapping for:xxxx

  使用MySQL时,在隐射<union-subclass>时,父类 … 继续阅读

发表在 Hibernate | 留下评论

Hibernate: getColumnName vs getColumnLabel, Hibernate, MySQL 谁之过?

   Hiberante在获取ResultSet后会根据MetaData的col … 继续阅读

发表在 Hibernate | 留下评论