Hibernate 3 - Persistent Objects Retrieval

Hibernate Query Language Questions in this category test your knowledge on :
  • Query APIs and its methods : list(),
  • the from clause syntax, using alias (with and without 'as')
  • the select clause syntax, use of ',' to separate operands
  • the different ways to make joins : theta style, join, left join and corresponding SQL generated
  • the where clause syntax, building and combining conditions
    • operators : = , <>, <, >, >=, <=, between, not between, in, not in
    • parameters injection : Query.setXXX()
  • the elements() clause
  • subqueries syntax : all, any, some, in
  • Result sorting : .addOrder(), Order.desc(), Order.asc()
  • Result paging : setFirstResult(), setMaxResult()
  • use of aggregate functions : count(), min(), max(), sum(), avg()
  • named queries definition
    • definition in mapping file : <query />
    • APIs to retrieve it
  • bulk update/delete queries syntax
  • dynamic instantiation : select new()
Query by Criteria Questions in this category test your knowledge on :
  • Session APIs related to Criteria : createCriteria()
  • Criteria methods used to retrieve entities : add(), list(), scroll(), ...
  • Restrictions APIs, know the basic methods : and(), between(), eq(), ge(), gt(), in(), le(), lt(), ...
  • Projections APIs, know the basic methods : avg(), count(), distinct(), min(), max(), sum(), ...
  • Code example resulting SQL
Query by Example Questions in this category test your knowledge on :
  • Example APIs : create(), enableLike(), ignoreCase(), excludeZeroes(), excludeNone(), excludeProperty()
  • MatchMode APIs : ANYWHERE, END, START, EXACT
  • Code example resulting SQL
Native SQL Queries Questions in this category test your knowledge on :
  • Session related APIs : createSQLQuery()
  • Syntax {class.*}
  • Query related APIs : addEntity()
  • Named Queries
    • definition in mapping file : <sql-query />
    • APIs to retrieve it : getNamedQuery()
Collection and Class Filters Questions in this category test your knowledge on :
  • Collection filters
    • related Session APIs : .createFilter() and allowed arguments
    • where clause in mapping file
  • Dynamic filters on Class and Collection
    • <filter />, <filter-def /> and <filter-param /> element and allowed content
    • related APIs : Session.enableFilter(), Filter.setParameter()

你可能感兴趣的:(sql,Hibernate)