Skip to content

Instantly share code, notes, and snippets.

@msosvi
Created September 17, 2011 18:08
Show Gist options
  • Save msosvi/1224189 to your computer and use it in GitHub Desktop.
Save msosvi/1224189 to your computer and use it in GitHub Desktop.
Esquema por defecto en JPA
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
version="2.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>MYSCHEMA</schema>
</persistence-unit-defaults>
</persistence-unit-metadata>
<sequence-generator name="IdentitySeq"
sequence-name="SEQ_GEN_IDENTITY" allocation-size="50" />
</entity-mappings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment