Chapter 3 Creating J2EE Applications for Sybase EAServer


Customizing O/R mapping

Each application server may use different syntax for O/R mapping SQL queries, variables and stored-procedures. For example, to designate the value of an attribute, application servers can use %attributeName%, @attributeName or :attributeName.

Sybase EAServer uses @attributeName as variable name to designate the value of an attribute. After importing the Sybase EAServer extended model definition to your model, you can verify that the O/R mapping queries are properly defined for EAServer.

Steps To verify the O/R mapping queries:

  1. Open the property sheet of a bean class.
  2. Click on the Mapping tab.
  3. Verify the Select, Insert , Update , and Delete queries.

 


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