There seemed to be a problem with names or casing.
I changed the following to lowercase and solved the problem:
- Column names in table (s)
- Table name
- I also changed the database name because I used the shotgun approach.
- All links to the above in the .java and * .hbm.xml files
I did this because I was just starting a project, I wanted to use Hibernate, but I was unfamiliar with it, and I didnโt care if these data-related elements changed.
I also used this approach because it seemed simple and fearless. And if that failed, I would try a different technique and solution.
I did not need to change or add any unfamiliar codes or annotations. All I had to do was omit the following items mentioned above.
This is a basic metadata solution, not an unusual code solution.
This is not elegant, but it removes any ambiguity as to whether the problem with the situation causes your situation.
source share