Running Sequence with groovy expression




Environment: JDeveloper 11.1.1.6.0
Database: Oracle XE
Download svn Link


1. Create model project from XE schema.





















2. Association between Department entity and Employee entity looks like below.
















3. Create a transient attribute (ChildMaxID) in Departments EO and give default vale as (Employees.max("EmployeeId") == null)? 1 : (Employees.max("EmployeeId") + 1). Employees is the association accessor name.














4. Open Employee EO and set value property of EmployeeId as Departments.ChildMaxId, Departments is the the association accessor name.













5. Run Business component tester.
















Environment: JDeveloper 11.1.1.6.0
Database: Oracle XE
Download svn Link

No comments:

Post a Comment