My Hibernate Early Error Encounters
Ok, I almost gave up at my early attempt in learning Hibernate. I encountered the following errors
QuerySyntaxException - I accidentally mistook the table name to the class name.
List messages = newSession.createQuery("from TABLE m order by m.text asc").list();should be
List messages = newSession.createQuery("from CLASS m order by m.text asc").list();InstantiationException: No default constructor for entity... - Luckily this error was descriptive enough that I figured out the problem on my own. I just had to supply a "No-Argument Constructor"
Now I can go back to having fun learning Hibernate. Hopefully someone who's googling right now could find this post useful. :)