An attribute is a named characteristic of an entity object or view object, implemented as a JavaBean property of the object class. An entity attribute can correspond to a database column, or be independent of a column, and describes the values that the entity object can hold.
There are two kinds of entity attributes:
|
Attribute kind |
Value is derived from and stored in the database? |
|---|---|
|
persistent |
yes |
|
transient |
no |
When you first create an entity object using reverse generation, a persistent entity attribute is created for each table column.
For forward generation, when you create database tables from entity objects, each persistent attribute becomes a column in the table.
After, if you change a table or entity objects, you can use the Synchronize tool to make sure that the tables and entity objects are in sync.
Entity attribute settings control the Java type of the attribute, represent column constraints such as PRIMARY KEY, NOT NULL or UNIQUE, control the properties of generated database columns, and perform miscellaneous simple functionality such as specifying static default values.
All of the attribute settings are stored in the entity object XML file.
In Business Components for Java, the term "attribute" is based on the UML definition of the term, not the XML definition. In UML, an attribute is a named property of a class that describes a range of values that instances of that class might hold.
Ways to Edit Entity Attributes
What Is an Entity Object?
About Generating Entity Objects,
Associations, and Database Tables
What is a View Attribute?
What Is a Domain?
About Synchronizing the Database and Business
Logic Tier
Using an Entity Attribute as a Database Sequence
Adding and Removing Entity
Attributes