Comments on: EJB 3.0 Reference Implementation with teeth – Open Source EJB 3.0 by Sun and Oracle (Report from JavaPolis) Friends of Oracle and Java Wed, 08 Jul 2015 07:37:03 +0000 hourly 1 By: Lucas Jellema Wed, 14 Dec 2005 20:42:17 +0000 Still not supported in a very direct way – something you just don’t do unless you are a enthousiastic Database programmer – is the derivation of values inside the database through Defaults defined on columns or inside Database Triggers. Only database generated Primary Key values are directly supported through an attribute in the @Id annotation. When you know that an Before Row Insert or Update trigger may set or change values on the record, you have to explicitly tell the EntityManager to flush and refresh directly after a create and update. Not pretty. Then again, you can hardly expect a generic persistency API to leverage features like Oracle’s Returning Clause that you can use to return the values of specific columns immediately following a DML statement.