Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. package com.ds.supercar.model.usermodel;
  2.  
  3. private String emailid;
  4. private String mobile;
  5. private String street;
  6. private String city;
  7. private String state;
  8. private String country;
  9. private String pin;
  10.  
  11. //GETTERS AND SETTERS
  12. public Address() {
  13. // TODO Auto-generated constructor stub
  14. }
  15.  
  16.  
  17. public Address(String emailid, String mobile, String street, String city, String state, String country,
  18. String pin) {
  19. super();
  20. this.emailid = emailid;
  21. this.mobile = mobile;
  22. this.street = street;
  23. this.city = city;
  24. this.state = state;
  25. this.country = country;
  26. this.pin = pin;
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. public String getEmailid() {
  35. return emailid;
  36. }
  37. public void setEmailid(String emailid) {
  38. this.emailid = emailid;
  39. }
  40. public String getMobile() {
  41. return mobile;
  42. }
  43. public void setMobile(String mobile) {
  44. this.mobile = mobile;
  45. }
  46. public String getStreet() {
  47. return street;
  48. }
  49. public void setStreet(String street) {
  50. this.street = street;
  51. }
  52. public String getCity() {
  53. return city;
  54. }
  55. public void setCity(String city) {
  56. this.city = city;
  57. }
  58. public String getState() {
  59. return state;
  60. }
  61. public void setState(String state) {
  62. this.state = state;
  63. }
  64. public String getCountry() {
  65. return country;
  66. }
  67. public void setCountry(String country) {
  68. this.country = country;
  69. }
  70. public String getPin() {
  71. return pin;
  72. }
  73. public void setPin(String pin) {
  74. this.pin = pin;
  75. }
  76.  
  77. <!DOCTYPE hibernate-mapping PUBLIC
  78. "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  79. "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  80.  
  81. <hibernate-mapping>
  82. <class name="com.ds.supercar.model.usermodel.Address" table="supercaraddress" schema="supercar">
  83. <id column="email"/>
  84. <property name="mobile"/>
  85. <property name="street"/>
  86. <property name="city"/>
  87. <property name="state"/>
  88. <property name="country"/>
  89. <property name="pin"/>
  90. </class>
  91.  
  92. </hibernate-mapping>
  93.  
  94. <!DOCTYPE hibernate-configuration PUBLIC
  95. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  96. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  97.  
  98. <hibernate-configuration>
  99. <session-factory>
  100. <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
  101. <property name="hibernate.connection.url">jdbc:oracle:thin:@127.0.0.1:1521:SYSTEM</property>
  102. <property name="hibernate.connection.username">system</property>
  103. <property name="hibernate.connection.password">admin</property>
  104. <property name="hbm2ddl_auto">create</property>
  105. <property name="hibernate.dialect">org.hibernate.dialect.Oracle11gDialect</property>
  106. <property name="show_sql">true</property>
  107.  
  108. log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement