In ADF 11g there is a better and much simpler way to populated primary key attribute of your entity using a db sequence.
You can simply to to your entity pk attribute change the default value type to expression and put
(new oracle.jbo.server.SequenceImpl("YOUR_SEQ_NAME",object.getDBTransaction())).getSequenceNumber()
No comments:
Post a Comment