Samples > Sample stores > Consumer direct sample store > IBM Gift Center for the Consumer direct sample store > IBM Gift Center
Customize the data persistence layer
The IBM Gift Center data persistence layer is consistent with that of WebSphere Commerce. You can customize the persistence layer exactly the same way as other WebSphere Commerce components. There is nothing specific for customizing this layer for the IBM Gift Center.
Most database tables contain customizable fields (such as Field1, Field2, and Field3), and it is recommended that you use these customizable fields for this purpose. If there are not enough customizable fields for the business needs, then create a new database table with EJB beans and generated access beans.
- Configure business rules for customization
After you have customized the IBM Gift Center, you should also configure business rules for the custom code. You should consider the following issues when you configure business rules:
- IBM Gift Center business rules and the GRREGRULE table
The IBM Gift Center contains several business rules that are stored in the GRREGRULE database table. Each rule is simply a value in the database. It is up to the rule implementer to decide how complex to make the rule. All rules are loaded on server startup, so if you apply a manual database update to any rule, then the server must be restarted to take effect.
- IBM Gift Center business rules
All business rules within the GiftRegistryRuleRegistry API are enabled in the WebSphere Commerce configuration file. The WebSphere Commerce Registry Manager maintains a set of registries for caching WebSphere Commerce runtime data. When you change data in the tables associated with a registry, refresh the registry; otherwise, the WebSphere Commerce runtime environment will not recognize the new data.
- Extend commands for new business rules
To add new business rules to the IBM Gift Center, you can also extend the following BOD commands:
Related concepts
Related tasks
Configure business rules for customization
Related reference
Overview of customizing IBM Gift Center
IBM Gift Center business rules and the GRREGRULE table
IBM Gift Center business rules
Extend commands for new business rules