This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
So I whipped up a java/swing/hibernate/hsqldb desktop app in Eclipse.
...seems ok as code runs through my HibernateUtil.java fine.
My StudentOfDistrict class has a constructor that takes an array of Strings.
Since I'm just in the prototyping stage right now I manually start the HSQLDB server from within a CommandWindow before attempting to execute the app from within Eclipse.
M$prompt> java -classpath hsqldb.jar org.hsqldb.Server
this does bring up the server
then executing the app connection to server is made, all goes well until I actually try to create a new instance of StudentOfDistrict ( insert a row into students_of_district)
fails with a illegalArgumentException
I know the database server is up and a connection is made, but I don't know if the table students_of_district is getting automatically created by Hibernate prior to trying to insert.