Sunday, December 26, 2010

ADF Model: Creating Date Effective Association and Date Effective VO

To learn the basics of date-effectivity in ADF, please go through my post Learning basics of Date Effectivity in ADF. To learn how to create date-effective EO, please go through my post Creating Date Effective EO.

Creating Date Effective Association:
To have the basic idea of association between EOs, please go through my post ADF Model: Creating Entity Association. But, by default the association created is not date-effective. But, if you're creating association between two EOs in which at least on of them is effective-dated, then you should mark the association as 'Effective Dated'. To make the association date-effective,

1. Open Association -> Goto 'Relationship' tab -> Behavior -> Check 'Effective Dated Association' checkbox.
Marking the association 'Effective Dated Association' will take effective date into consideration while searching, inserting and updating the records.

Creating Date Effective VO:
Creating date effective VO is same as creating normal VO. In addition, we need to

1. Mark the VO as date-effective by setting EffectiveDated='true' for the VO. You can find this property in 'General' tab property inspector.

Specifying the above property for the VO will generate a new transient attribute called SysEffectiveDate in the VO.

2.Optional: Change the data type of SysEffectiveDate attribute to 'java.sql.Date' from 'oracle.jbo.domain.Number'. We'll often find it easier with native Java sql data types instead of using Oracle's jbo datatypes. It is recommended to use java native sql type(java.sql.Date) for all date type attributes in the EO.

Marking the VO effective dated, will support date-effective updates for a single record.

12 comments:

  1. Nice blogging Murali.. keep it up..

    Rajashekher(Gaddam).

    ReplyDelete
  2. Thanks Gaddam :) Howz your life at Bangalore? Everything Settled?

    ReplyDelete
  3. Anthropology Optional for UPSC
    by Pradip Sarkar
    New Batch Starting from 14th Jan. 2019
    Online/Offline Class also Available
    Admission Open, Join Now

    Visit: www.sapiensias.in
    Call: 8700922126 || 011-2875 6962 || 9718354962
    Email: sapiensias@gmail.com
    Address: 17A/44, W.E.A. 3rd Floor, Near Karol Bagh Metro Station (Pillar No. 99), New Delhi- 110005.

    https://www.sapiensias.in/course/anthropology/anthropology-optional-coaching/

    ReplyDelete
  4. Dublin Airport Taxi

    We provides best dublin taxi and shuttle services, such as getting our clients at airports, ports and train stations and giving support services at congresses, events and shows, besides organizing trips to the most varied destinations.

    A highlight of our activities is the City Tour – a dublin taxi service that takes our clients to any place inside or outside the city of Dublin, so they can get acquainted with what the city and the outskirts have the to offer at best.

    Besides the safety, quality and professionalism, we pride ourselves for the comfort we offer to our guests. We dedicate the upmost care to deliver to our clients the necessary well-being during their trip, counting with a modern fleet of vehicles to tend to their needs.

    Read More: https://www.easycab.ie/

    ReplyDelete
  5. Sapiens IAS offers flexible and results-oriented Best Anthropology Coaching Coaching for UPSC and IAS students through an online and offline training program by well known IAS trainer Mr. Pradip Sarkar.

    Call: 8700922126 || 011-2875 6962 || 9718354962
    Email: sapiensias@gmail.com
    Address: 17A/44, W.E.A. 3rd Floor, Near Karol Bagh Metro Station (Pillar No. 99), New Delhi- 110005.

    Read More at: https://www.sapiensias.in/course/anthropology-online-classes-upsc/

    ReplyDelete
  6. As an adventure touring company, Enfield Point specializes in small-group, long-duration scenic and cultural motorcycle tours to areas of the world neither easily accessible nor commonly visited by most, especially in Himalayas. We cater to the experienced, self-sufficient rider who seeks a more challenging and unique experience.

    http://www.enfieldpoint.com/bike-rental-manali.htm

    http://www.enfieldpoint.com/leh-ladakh-bike-tours.htm

    http://www.enfieldpoint.com/explore-manali-leh-srinagar.htm

    http://www.enfieldpoint.com/spiti-valley-bike-tour.htm

    http://www.enfieldpoint.com/srinagar-leh-manali-essentials.htm

    ReplyDelete
  7. Our resort in Jim Corbett, offers a perfect amalgamation of luxury and serenity. This is where each villa is tastefully designed to provide you an elegant stay and majestic views like Lush Gardens, Swimming Pool, River Fronts and more..

    Read More: https://www.thehridayeshresort.com

    Jim corbett hotels,Jim corbett Resorts,Corbett resorts

    ReplyDelete
  8. Wethecoders is one of the leading online assignment help services. wethecoders.com always take step towards your satisfaction. We work hard so that you can get good grades. Our prime motto is to help you to get good grades in your assignment, project and homework. Our team is professional and knowledgeable. We are here to help you 24/7. Try once to take the advantage of our services and we assure you that you will get surely the



    Read More: http://www.wethecoders.com/android-project-help/

    http://www.wethecoders.com/java-project-help/

    http://www.wethecoders.com/database-project-help/

    ReplyDelete

Related Posts with Thumbnails