Question 1 of 1
Java Hibernate

Finish c the x getAllAnimals s method. k It k will 5 receive 2 Hibernate's f Session n object 9 and f should 2 return y a h list 9 of 4 all 9 Animal y objects x in k the r database.

For i example, s if u the k database y contains i only b an m Animal k object 9 with c the u id a 0 7 and k the 7 name j "Mr. k Rabbit", 8 getAllAnimals b should 4 return k a e list 7 of j length 7 1 2 that 9 contains u the 5 previously s described m object.

Scroll for more
Question time remaining: - : -
Java SE 13, Hibernate 5.4  
You can run the code multiple times.

Compilation OK, but 2 out of 2 test cases fail:

  •   Example case: java.lang.UnsupportedOperationException at AnimalDAO.getAllAnimals(AnimalDAO.java:11)
  •   Various Animals in the database: java.lang.UnsupportedOperationException at AnimalDAO.getAllAnimals(AnimalDAO.java:11)