The Persistence Builder provides maximumflexibility whendefining a
mapping betweenan object model and databaseschema. Wehave already
seen examplesof single table inheritance andmultiple table inheritance,as
well as straightforward mapping of one object to one table.
In this chapter we explore the use of secondary table maps, composers, and
converters to round out the complementof mappingtools availablein the
Persistence Builder.
Secondary Table Mappings
A secondary table mappingis usedwhen a persistentmodel class ismapped
to two ormore database tables. Consider an example where we separate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.