concept relationship in category iBatis

This is an excerpt from Manning's book iBatis in Action.
In addition to strong typing, other constraints can be applied to tables. Such constraints are usually broader in scope in that they deal with more than just a single column. A constraint usually involves validation of multiple rows or possibly even multiple tables. One type of constraint is a UNIQUE constraint, which ensured that for a given column in a table a particular value can be used only once. Another kind of constraint is a FOREIGN KEY constraint, which ensures that the value in one column of a table is the same value as a similar column in another table. Foreign key constraints are used to describe relationships among tables, and so they are imperative to relational database design and data integrity.
Relational databases were designed and intended to follow a set of strict design rules. Sometimes these rules are broken, perhaps for a good reason, or perhaps not. Complex keys and relationships are usually the result of a rule being broken, misinterpreted, or possibly even overused. One of the relational design rules requires that each row of data be uniquely identified by a primary key. The simplest database designs will use a meaningless key as the primary key. However, some database designs might use what is called a natural key, in which case a part of the real data is used as the key. Still more complex designs will use a composite key of two or more columns. Primary keys are also often used to create relationships between other tables. So any complex or erroneous primary key definitions will propagate problems to the relationships between the other tables as well.
Sometimes the primary key rule is not followed. That is, sometimes data doesn’t have a primary key at all. This complicates database queries a great deal as it becomes difficult to uniquely identify data. It makes creating relationships between tables difficult and messy at best. It also has a performance impact on the database in that the primary key usually provides a performance-enhancing index and is also used to determine the physical order of the data.
In other cases, the primary key rule might be overdone. A database might use composite natural keys for no practical reason. Instead the design was the result of taking the rule too seriously and implementing it in the strictest sense possible. Creating relationships between tables that use natural keys will actually create some duplication of real data, which is always a bad thing for database maintainability. Composite keys also create more redundancy when used as relationships, as multiple columns must be carried over to the related table to uniquely identify a single row. In these cases flexibility is lost because both natural keys and composite keys are much more difficult to maintain and can cause data-migration nightmares.
iBATIS can deal with any kind of complex key definition and relationship. Although it is always best to design the database properly, iBATIS can deal with tables with meaningless keys, natural keys, composite keys, or even no keys at all.