VAJ: Entity Bean vs Database
1 posts in topic
Flat View  Flat View

Posted By:   Susmav_vanka
Posted On:   Monday, January 14, 2002 08:06 PM


What are the steps to map an Entity Bean with database thru Visual Age for Java.

Please help me.


Re: VAJ: Entity Bean vs Database

Posted By:   daniel_walker  
Posted On:   Tuesday, January 15, 2002 02:10 PM

1. Create you Entity Bean, with the desired fields. (Easiest to add the fields using the right-click menu - add/CMP field.

2. Open the Schema browser and create your table descriptor.

3. Open the Map Browser, create a new map. (new EJB Group Map and/or new Table Map.

4. Edit the 'Property Map' on your newly created map. Map the class attributes on the left to the database fields on the right. Use a 'simple' map type if you're doing straight field to column mappings.

About | Sitemap | Contact