Sunday, July 14, 2013
Thursday, July 4, 2013
Oracle ADF Java Data Types and Groovy Type
Thursday, June 27, 2013
How to set default values for Entity object attributes
بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
In this demo I am going to set default value of hire date of employees to today's date
There are 3 ways to set default values:-
1.) In the overridden create() method of the Entity object class:-
Generate EmployeesImpl.java class of EmployeesEO Entity Object.
Add the following code to create() immediately after the call to super.create() .
this.setHireDate((Date)Date.getCurrentDate());
There are 3 ways to set default values:-
1.) In the overridden create() method of the Entity object class:-
Generate EmployeesImpl.java class of EmployeesEO Entity Object.
Add the following code to create() immediately after the call to super.create() .
this.setHireDate((Date)Date.getCurrentDate());
Subscribe to:
Posts
(
Atom
)



