Tag: web technology
Questions Related to web technology
-
all
-
persist
-
delete
-
All the above
-
session..commit()
-
session.getCommitTransaction()
-
session.getTransaction().commit()
-
session.getTransaction().save()
-
Hibernate does not support lazy initialization for detached objects.
-
Access to a lazy association outside of the context of an open Hibernate session will result in an exception.
-
Lazy fetching is way to avoid unnecessary column reads.
-
All the above.
-
sess.createQuery("SELECT * FROM CATS").list();
-
sess.createSQLQuery("FROM CATS").list();
-
sess.createSQLQuery("SELECT * FROM CATS").list();
-
sess.createSQLQuery("from CATS", com.animals.Cat.class).list();
-
commit()
-
flush()
-
close()
-
list()
-
Every table must have a separate mapping file
-
Only parent table needs separate mapping fie
-
Only child table need separate mapping file
-
One mapping file can have mappings for one or more table.
-
Pass an instance of java.util.Properties to Configuration.setProperties().
-
Place hibernate.properties in a root directory of the classpath.
-
Set System properties using java -Dproperty=value.
-
All the above
-
integer
-
character
-
yes_no
-
None of the above
-
echo_sql
-
show_sql
-
print_sql
-
display_sql
-
Using several dialect
-
Using several
-
Using several connection properties
-
Not possible to map more than one database