![](https://csdnimg.cn/release/download_crawler_static/1486402/bg12.jpg)
xvi JBoss Administration and Development
11-7 Sample cmp-field abstract accessor declaration ............................................................................................................560
11-8 The ejb-jar.xml cmp-field Declaration ..........................................................................................................................560
11-9 The jbosscmp-jdbc.xml cmp-field Mapping..................................................................................................................562
11-10 A smaple jbosscmp-jdbc.xml cmp-field read-only declaration ..................................................................................563
11-11 A sample audit element declaration............................................................................................................................565
11-12 The jbosscmp-jdbc.xml Dependent Value Class Declaration.....................................................................................566
11-13 Generated Column Names for ContactInfo Dependent Value Class..........................................................................568
11-14 The jbosscmp-jdbc.xml cmp-field Dependent Value Class Property Override..........................................................569
11-15 Collection Valued cmr-field Abstract Accessor Declaration......................................................................................571
11-16 Single Valued cmr-field Abstract Accessor Declaration ............................................................................................571
11-17 The ejb-jar.xml Relationship Declaration...................................................................................................................571
11-18 The jbosscmp-jdbc.xml Relationship Mapping Template..........................................................................................574
11-19 The jbosscmp-jdbc.xml Foreign Key Mapping ..........................................................................................................578
11-20 The jbosscmp-jdbc.xml Relation-table Mapping........................................................................................................579
11-21 Finder Declaration ......................................................................................................................................................581
11-22 ejbSelect Declaration ..................................................................................................................................................582
11-23 A sample ejb-jar.xml Query Declaration ....................................................................................................................582
11-24 The jbosscmp-jdbc.xml JBossQL Override................................................................................................................585
11-25 JBossQL SQL Mapping..............................................................................................................................................586
11-26 A sample jboss-ql finder using LIMIT and OFFSET .................................................................................................586
11-27 DynamicQL Example Code........................................................................................................................................587
11-28 A sample jbosscmp-jdbc.xml DynamicQL Override..................................................................................................587
11-29 The jbosscmp-jdbc.xml DeclaredSQL Override.........................................................................................................589
11-30 DeclaredSQL SQL Mapping.......................................................................................................................................590
11-31 The jbosscmp-jdbc.xml DeclaredSQL Override With From Clause..........................................................................590
11-32 The jbosscmp-jdbc.xml DeclaredSQL With From Clause SQL Mapping .................................................................591
11-33 The jbosscmp-jdbc.xml DeclaredSQL ejbSelect Override.........................................................................................591
11-34 The jbosscmp-jdbc.xml DeclaredSQL ejbSelect SQL Mapping ................................................................................592
11-35 Custom Finder Example Code....................................................................................................................................593
11-36 Loading Scenario Example Code................................................................................................................................594
11-37 Unoptimized findAll Query ........................................................................................................................................595
11-38 Unoptimized Load Queries.........................................................................................................................................595
11-39 The jbosscmp-jdbc.xml Load Group Declaration.......................................................................................................596
11-40 on-find Optimized findAll Query ...............................................................................................................................597
11-41 The jbosscmp-jdbc.xml on-find Declaration ..............................................................................................................598
11-42 on-load (Unoptimized) findAll Query ........................................................................................................................599
11-43 on-load Optimized Load Queries................................................................................................................................600
11-44 The jbosscmp-jdbc.xml on-load Declaration..............................................................................................................600
11-45 The jbosscmp-jdbc.xml none Declaration ..................................................................................................................601
11-46 The jboss.xml Commit Option Declaration................................................................................................................603
11-47 The jbosscmp-jdbc.xml Eager Load Declaration........................................................................................................603
11-48 The jbosscmp-jdbc.xml Lazy Load Group Declaration..............................................................................................605
11-49 Relationship Lazy Loading Example Code ................................................................................................................606
11-50 The jbosscmp-jdbc.xml Relationship Lazy Loading Configuration...........................................................................607
11-51 on-find Optimized findAll Query ...............................................................................................................................608
11-52 on-find Optimized Relationship Load Queries...........................................................................................................608
11-53 No Transaction Loading Example Code.....................................................................................................................609
11-54 No Transaction on-find Optimized findAll Query......................................................................................................610
11-55 No Transaction on-load Optimized Load Queries......................................................................................................610
11-56 User Transaction Example Code ................................................................................................................................612