Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ds.supercar.model.usermodel;
- private String emailid;
- private String mobile;
- private String street;
- private String city;
- private String state;
- private String country;
- private String pin;
- //GETTERS AND SETTERS
- public Address() {
- // TODO Auto-generated constructor stub
- }
- public Address(String emailid, String mobile, String street, String city, String state, String country,
- String pin) {
- super();
- this.emailid = emailid;
- this.mobile = mobile;
- this.street = street;
- this.city = city;
- this.state = state;
- this.country = country;
- this.pin = pin;
- }
- public String getEmailid() {
- return emailid;
- }
- public void setEmailid(String emailid) {
- this.emailid = emailid;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- public String getStreet() {
- return street;
- }
- public void setStreet(String street) {
- this.street = street;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getState() {
- return state;
- }
- public void setState(String state) {
- this.state = state;
- }
- public String getCountry() {
- return country;
- }
- public void setCountry(String country) {
- this.country = country;
- }
- public String getPin() {
- return pin;
- }
- public void setPin(String pin) {
- this.pin = pin;
- }
- <!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
- <hibernate-mapping>
- <class name="com.ds.supercar.model.usermodel.Address" table="supercaraddress" schema="supercar">
- <id column="email"/>
- <property name="mobile"/>
- <property name="street"/>
- <property name="city"/>
- <property name="state"/>
- <property name="country"/>
- <property name="pin"/>
- </class>
- </hibernate-mapping>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
- <property name="hibernate.connection.url">jdbc:oracle:thin:@127.0.0.1:1521:SYSTEM</property>
- <property name="hibernate.connection.username">system</property>
- <property name="hibernate.connection.password">admin</property>
- <property name="hbm2ddl_auto">create</property>
- <property name="hibernate.dialect">org.hibernate.dialect.Oracle11gDialect</property>
- <property name="show_sql">true</property>
- log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement