MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology


Mapping In Hibernate
Previous Home Next

We can found the serval optional attributes. In the hibernate mapping file we found the schema and catalog attributes that specify that tables referred to in the hibernate mapping belong to the named schema and/or catalog. When we specify to both then tablenames will be qualified by the given schema and cattalog names. When we missing to identyfing to tablenames will be unqualified. The default-cascade attribute specifies what cascade style should be assumed for properties and collections that do not specify a cascade attribute.we found the bydefault auto-import attribute allows that use to unqualified class names in the query languages.

Here we can understand in the below code:



When we have two persistence class with the same unqualified name, the we need to set auto-import="false". Then we see the an exception result if we attempt to assign two classes to the same "imported" name. In the Hinernate mapping element allwos to nest serval persistent mapping, as we given above. When we need to map a single persistence class then we found the single class hierchy in one mapping file and name it after the persistent class. We can take for the example Robot.hbm.xml,Vechile.hbm.xml of if we using the hibernate inheritance with Machine.hbm.xml.

Previous Home Next