I am new to IDEA. I've successfully imported a project and built it with Maven. The IDE automagically found the JPA resources and connected to the DB. This is just awesome. :)
However, it seems like the entities are validated against the wrong table. Let me explain:
- In the DB, (a somewhat messy dev database), there is a table named MyEntity and another called TBL_MY_ENTITY.
- In the code, a class is called MyEntity.
- In MyEntity, there is an anotation @Table( name = "TBL_MY_ENTITY")
The validation is done against the table named MyEntity, and I expected it to be done against TBL_MY_ENTITY since it's the one specified in the @Table annotation.
I realize this situation is not really typical, but it still seems wrong to me.
Thanks for your help!