Chapter 4 Generating Hibernate Persistent Objects and JSF Pages


Manually defining O/R mapping

If you have the Java classes definition and the database structure, you can manually define the O/R mapping:

  1. Define your Java classes in an OOM or reverse engineer some existing Java classes
  2. Reverse engineer the database to create a PDM
  3. Open the mapping editor in the OOM
  4. Create a data source that refers to the PDM
  5. Drag and drop tables or columns over classes or attributes to define O/R mapping

 


Copyright (C) 2005. Sybase Inc. All rights reserved.