사용자 도구

사이트 도구


java:jpa

문서의 이전 판입니다!


JPA

sql comments 자동 생성

<property name="hibernate.use_sql_comments" value="true" />

Query Hint

  • query.setHint(String name, Object value)
  • org.hibernate.timeout Query timeout in seconds ( eg. new Integer(10) )
  • org.hibernate.fetchSize Number of rows fetched by the JDBC driver per roundtrip ( eg. new Integer(50) )
  • org.hibernate.comment Add a comment to the SQL query, useful for the DBA ( e.g. new String(“fetch all orders in 1 statement”) )
  • org.hibernate.cacheable Whether or not a query is cacheable ( eg. new Boolean(true) ), defaults to false
  • org.hibernate.cacheMode Override the cache mode for this query ( eg. CacheMode.REFRESH )
  • org.hibernate.cacheRegion Cache region of this query ( eg. new String(“regionName”) )
  • org.hibernate.readOnly Entities retrieved by this query will be loaded in a read-only mode where Hibernate will never dirty-check them or make changes persistent ( eg. new Boolean(true) ), default to false
  • org.hibernate.flushMode Flush mode used for this query (useful to pass Hibernate specific flush modes, in particular MANUAL).
  • org.hibernate.cacheMode Cache mode used for this query

</code>

읽어볼 문서

java/jpa.1391664304.txt.gz · 마지막으로 수정됨: 2014/02/06 14:25 저자 kwon37xi