Here are some ways you can use the business component framework API to customize entity objects and associations. See the Javadoc and the tutorials for more information.
Getting and Setting Properties at Runtime
Applying Unposted Changes to Entity Rows Queried from the Database
Implementing Transaction Locking in Code
Calling Stored Procedures