بسم الله الرحمن الرحيم
اللهم علمنا ما ينفعنا وانفعنا بما علمتنا يا رب العالمين
---------------
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());