properties file, but from 3.x xml came into picture.Ĭonfiguration –> xml. We don’t have annotations here, actually in hibernate 1, 2.x we defined this configuration file by writing. We can write this configuration in 2 ways… of databases we are using = That many number of configuration files We must create one configuration file for each database we are going to use, suppose if we want to connect with 2 databases, like Oracle, MySql, then we must create 2 configuration files. Syntax Of Mapping xml: Ĭonfiguration is the file loaded into an hibernate application when working with hibernate, this configuration file contains 3 types of information. its not possible. In order to inform what value of an object has to be stored in what column of the table, will be taking care by the mapping, actually mapping can be done using 2 ways,Īctually annotations are introduced into java from JDK 1.5. Generally an object contains 3 properties likeīut while storing an object into the database, we need to store only the values( State) right ? but how to avoid identity, behavior. While writing an hibernate application, we can construct one or more mapping files, mean a hibernate application can contain any number of mapping files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |