|
Spring Framework example source code file (org.springframework.samples.petclinic.Visit.xml)
The Spring Framework org.springframework.samples.petclinic.Visit.xml source code<?xml version="1.0" encoding="UTF-8"?> <descriptor type="relational"> <name>org.springframework.samples.petclinic.Visit <class-handle> <type-name>org.springframework.samples.petclinic.Visit </class-handle> <transactional-policy type="relational"> <descriptor-alias>Visit <refresh-cache-policy/> <caching-policy/> <query-manager type="relational"/> <locking-policy type="relational"/> <primary-key-policy> <primary-key-handles> <column-handle> <column-table-name>VISITS <column-name>ID </column-handle> </primary-key-handles> </primary-key-policy> </transactional-policy> <mappings> <mapping type="direct-to-field"> <name>date <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Visit <attribute-name>date </attribute-handle> <column-handle> <column-table-name>VISITS <column-name>VISIT_DATE </column-handle> </mapping> <mapping type="direct-to-field"> <name>description <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Visit <attribute-name>description </attribute-handle> <column-handle> <column-table-name>VISITS <column-name>DESCRIPTION </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>VISITS <column-name>ID </column-handle> </mapping> <mapping type="one-to-one"> <name>pet <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.Visit <attribute-name>pet </attribute-handle> <reference-descriptor-handle> <descriptor-name>org.springframework.samples.petclinic.Pet </reference-descriptor-handle> <reference-handle> <reference-table-name>VISITS <reference-name>FK_VISITS_PETS </reference-handle> </mapping> </mappings> <inherited-attribute-handles> <attribute-handle> <attribute-declaring-type-name>org.springframework.samples.petclinic.BaseEntity <attribute-name>id </attribute-handle> </inherited-attribute-handles> <primary-table-handle> <table-name>VISITS </primary-table-handle> <uses-sequencing>true <sequence-number-name>SEQ <sequence-number-table-handle> <table-name>VISITS </sequence-number-table-handle> <sequence-number-column-handle> <column-table-name>VISITS <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.Visit.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.