Advertisement
Guest User

Untitled

a guest
Feb 15th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  4. "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <session-factory>
  7. <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
  8. <property name="hibernate.connection.password">the_pass</property>
  9. <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/the_db</property>
  10. <property name="hibernate.connection.username">me</property>
  11. <property name="hibernate.default_schema">the_schema</property>
  12. <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  13. <property name="hibernate.dialect">org.hibernate.spatial.dialect.postgis.PostgisDialect"</property>
  14. <!-- "Import" the mapping resources here -->
  15.  
  16. <?xml version="1.0" encoding="UTF-8"?>
  17. <!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
  18. <hibernate-reverse-engineering>
  19. [...]
  20. <table-filter match-name="coordinates"></table-filter>
  21. <table-filter match-name="polygon"></table-filter>
  22. </hibernate-reverse-engineering>
  23.  
  24. private Serializable geom;
  25.  
  26. public Serializable getGeom() {
  27. return this.geom;
  28. }
  29.  
  30. public void setGeom(Serializable geom) {
  31. this.geom = geom;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement