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.Datejava.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

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

weblogic windows JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: Failed to lock cwallet.sso.lck

Working With File Throgh WebUtill