Skip to content

Instantly share code, notes, and snippets.

aeberhardo

Block or report user

Report or block aeberhardo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View removeUntrackedFilesInGit.sh
git ls-files --others --exclude-standard | xargs -I {} -n1 rm "{}"
@aeberhardo
aeberhardo / readme.adoc
Last active Mar 5, 2016
Installing MySQL on Microsoft Windows Using a noinstall Zip Archive
View readme.adoc
@aeberhardo
aeberhardo / persistence.xml
Created Mar 4, 2016 — forked from jesuino/persistence.xml
Wildfly Datasource and JPA Descriptor (persistence.xml)
View persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="primary">
<jta-data-source>java:jboss/datasources/PeopleDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.transaction.flush_before_completion" value="true"/>
</properties>
</persistence-unit>
@aeberhardo
aeberhardo / InMemoryDbFixture.java
Created Jan 17, 2016 — forked from skempken/InMemoryDbFixture.java
Creates a JPA EntityManager in code with a H2 in-memory database based on entity classes.
View InMemoryDbFixture.java
import org.hibernate.ejb.Ejb3Configuration;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import java.util.Collection;
import java.util.Properties;
public class InMemoryDbFixture {
private String scope;
You can’t perform that action at this time.