I'm persisting some data using Hibernate and I'm not sure if that's the correct way of doing things. I have a class called SensorDataObject, one of the fields is of type LocalDateTime. When it's saved in mysql its type is DATETIME which I assume is correct.
Now when I wrote code to retrieve data my IDE (Intelij) marks it as an error but the code compiles and seems to be working fine:
Intelij complains about "sdo.localDateTime" and says: "Type mismatch: number, date or string expected."
Am I doing something wrong or is Intelij just confused?