I have an application I am working on where I am trying to link to my PostgreSQL DB with the hibernate framework. I am new to this framework and I am having some issues getting a couple of my classes to successfully map to the DB. I will include the condensed, problematic, code below.
I have a feeling it has something to do with the way my classes are mapped because the following class works fine. These classes where actually originally generated with the jpa framework within Eclipse but they still did not work.
I don’t know that I can solve your problem, but the first thing I would do is ensure that all of my data model entity class attributes which represent database table columns are annotated @Column and have standard public getter and setter methods of the correct types on them.
Can you shoot lasers out of your eyes? Don't look at this tiny ad: