|
Spring Framework example source code file (org.springframework.samples.petclinic.Vet.xml)
The Spring Framework org.springframework.samples.petclinic.Vet.xml source code<?xml version="1.0" encoding="UTF-8"?> <descriptor type="relational"> <name>org.springframework.samples.petclinic.Vet <class-handle> <type-name>org.springframework.samples.petclinic.Vet </class-handle> <transactional-policy type="relational"> <descriptor-alias>Vet <refresh-cache-policy/> <caching-policy/> <query-manager type="relational"/> <locking-policy type="relational"/> <primary-key-policy> <primary-key-handles> <column-handle> <column-table-name>VETS <column-name>ID </column-handle> </primary-key-handles> </primary-key-policy> </transactional-policy> <mappings> <mapping type="direct-to-field"> <name>firstName <inherited>true <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Person <attribute-name>firstName </attribute-handle> <column-handle> <column-table-name>VETS <column-name>FIRST_NAME </column-handle> </mapping> <mapping type="direct-to-field"> <name>id <inherited>true <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.BaseEntity <attribute-name>id </attribute-handle> <column-handle> <column-table-name>VETS <column-name>ID </column-handle> </mapping> <mapping type="direct-to-field"> <name>lastName <inherited>true <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Person <attribute-name>lastName </attribute-handle> <column-handle> <column-table-name>VETS <column-name>LAST_NAME </column-handle> </mapping> <mapping type="many-to-many"> <name>specialties <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Vet <attribute-name>specialties </attribute-handle> <reference-descriptor-handle> <descriptor-name>org.springframework.samples.petclinic.Specialty </reference-descriptor-handle> <indirection-type>transparentIndirection <reference-handle> <reference-table-name>VET_SPECIALTIES <reference-name>FK_VET_SPECIALTIES_VETS </reference-handle> <container-policy type="set"> <container-class> <container-class-handle> <type-name>oracle.toplink.indirection.IndirectSet </container-class-handle> </container-class> </container-policy> <relation-table-handle> <table-name>VET_SPECIALTIES </relation-table-handle> <target-reference-handle> <reference-table-name>VET_SPECIALTIES <reference-name>FK_VET_SPECIALTIES_SPECIALTIES </target-reference-handle> </mapping> </mappings> <inherited-attribute-handles> <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Person <attribute-name>address </attribute-handle> <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Person <attribute-name>firstName </attribute-handle> <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.BaseEntity <attribute-name>id </attribute-handle> <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Person <attribute-name>lastName </attribute-handle> </inherited-attribute-handles> <primary-table-handle> <table-name>VETS </primary-table-handle> <uses-sequencing>true <sequence-number-name>SEQ <sequence-number-table-handle> <table-name>VETS </sequence-number-table-handle> <sequence-number-column-handle> <column-table-name>VETS <column-name>ID </sequence-number-column-handle> </descriptor> Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework org.springframework.samples.petclinic.Vet.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.