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:

  1. Do not use Java fields of type java.sql.Date! java.util.Date or java.util.Calendar instead.
  2. add annotation @id before primary key column
  3. add annotation @Temporal before every Date attribute

Comments

Popular posts from this blog

Detail entity with row key null cannot find or invalidate its owning entity.

Another user has changed the row with primary key oracle.jbo.Key[12 ].

setDomainEnv file in weblogic