Last active
February 19, 2016 13:12
-
-
Save dilnei/74b1adc2dd072b6deec2 to your computer and use it in GitHub Desktop.
Configuration of database in memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
| <persistence-unit name="projeto-ejbPU-test" transaction-type="RESOURCE_LOCAL"> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> | |
| <class>suas.classes.aqui</class> | |
| ... | |
| <properties> | |
| <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbc.JDBCDriver" /> | |
| <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:beamasset-test" /> | |
| <property name="javax.persistence.jdbc.user" value="sa" /> | |
| <property name="javax.persistence.jdbc.password" value="" /> | |
| <property name="javax.persistence.schema-generation.database.action" | |
| value="drop-and-create" /> | |
| </properties> | |
| </persistence-unit> | |
| </persistence> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment