Tag: programming languages

Questions Related to programming languages

What does session.createQuery("Query").scroll() return ?

  1. a) ListResultSet

  2. b) ResultSet

  3. c) ScrollableResultSet

  4. d) ScrollableResult


Correct Option: D
  1. a) Mapping files can be added to Configuration in the application code

  2. b) They can be configured in hibernate.cfg.xml using the elements

  3. c) both a and b

  4. d) none of the above


Correct Option: C
  1. a) StandardQueryCache and UpdateTimestampsCache

  2. b) StandardQueryCache

  3. c) QueryCache

  4. d) QueryCache and TimestampsCache


Correct Option: A
  1. a) StandardQueryCache and UpdateTimestampsCache

  2. b) StandardQueryCache

  3. c) QueryCache

  4. d) QueryCache and TimestampsCache


Correct Option: A
  1. a) lazy="true"

  2. b) lazy="false"

  3. c) lazy="on"

  4. d) lazy="off"


Correct Option: A
  1. a) lazy="true"

  2. b) lazy="false"

  3. c) lazy="on"

  4. d) lazy="off"


Correct Option: A
  1. a) lazy=false;

  2. b) lazy=true;

  3. c) lazy=yes;

  4. d) lazy=no;


Correct Option: B
  1. a) session.createQuery();

  2. b) session.createCriteria();

  3. c) session.createSQLQuery();

  4. d) session.lod();


Correct Option: A