Associations are used to create relationship between Entities in LOB application.
StoneBond’s BDC Tool allows users to easily create Association between mutliple tables in any database (Not limited to SQL and Oracle).
Following Steps are used to create simple association between Customers and Orders Entities of Northwind Database.
- Open Enterprise Enabler studio and create source templates for Customers and Orders Table.
- Create surrogate destination templates for these two source entities.
- Create two maps between source and destination templates.
- Open BDC Tool from Tools–>BDC Tool.
- Enter required information to create Application Definition File.
- Create a new Entity named Customers and select the map that is created for Customers Table. Select CustomerId as the Identifier in the Entity.
- Once the Entity is created, methods for each method instance (Finder, SpecifiFinder and IdEnumerator) will be added to methods list.
- Add another entity named Orders and select the map that is created for Orders Table. Select OrderId and CustomerId’s as identifiers in Orders entity.
- Three methods will be automatically added to it…
- Create a new method named GetOrdersByCustomerId and click on Add New parameter.
- Select the CustomerID column from the Customers Entity to create a relation ship.
- Once the Identifier from different entity is selected, it will be considered as a new association.
- Fill up required information for adding association and click on ok button.
- Click on Generate button to create Application Definition File.