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've pushed this to the Object Relational forum since it's not really about servlets.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
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.
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad: