Chapter 9 Generating Persistent Objects for Java and JSF Pages


Defining generation options

There are two types of generation options:

Steps To define environment variables:

  1. Select Tools→General Options
  2. Select the Variables node.
  3. Add a variable HIBERNATE_HOME and, in the value field, enter the Hibernate home directory path. For example, D:\Hibernate-3.0.

Steps To define generation options:

  1. Select Language→Generate Java Code.
  2. Specify the root directory where you want to generate the code.
  3. Click the Options tab.
  4. [optional] To use DAO, set the Generate DAO sources option to true.
  5. [optional] To use Eclipse to compile and test the Java classes, set the Generate Eclipse project artifacts option to true.
  6. [optional] To use unit test classes to test the Hibernate persistent objects, set the Generate unit test sources option to true.
  7. Click on OK to generate code immediately or Apply and then Cancel to save your changes for later.

 


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