Exception creating EntityManagerFactory
Exception creating EntityManagerFactory
This error in jdeveloper occurs when you build your ejb module on views not table
the problem is that the @id annotation is not added to the code generated by jdeveloper.
In addition to that , the java.sel.Timestamp is used insted of java.util.Date.
moreover that, the wizard that generates the code does not generate @Temporal annotation.
To solve this problem, do the following:
This error in jdeveloper occurs when you build your ejb module on views not table
the problem is that the @id annotation is not added to the code generated by jdeveloper.
In addition to that , the java.sel.Timestamp is used insted of java.util.Date.
moreover that, the wizard that generates the code does not generate @Temporal annotation.
To solve this problem, do the following:
- Do not use Java fields of type java.sql.Date! java.util.Date or java.util.Calendar instead.
- add annotation @id before primary key column
- add annotation @Temporal before every Date attribute
Comments