____ _____
/ ___| ___ __ _ _ __ ___ | ___|__ _ __ __ _ ___
\___ \ / _ \/ _` | '_ ` _ \ | |_ / _ \| '__/ _` |/ _ \ \\
___) | __/ (_| | | | | | | | _| (_) | | | (_| | __/ //
|____/ \___|\__,_|_| |_| |_| |_| \___/|_| \__, |\___|
|___/
[forge-distribution] dist $
[forge-distribution] dist $
[forge-distribution] dist $ new-project --named example --topLevelPackage com.example --projectFolder ~/Desktop/example
Use [/home/lb3/Desktop/example] as project directory? [Y/n] y
Wrote /home/lb3/Desktop/example/src/main/resources/META-INF/forge.xml
***SUCCESS*** Created project [example] in new working directory [/home/lb3/Desktop/example]
[example] example $
[example] example $ persistence setup
[example] example $ persistence setup --provider
HIBERNATE OPENJPA ECLIPSE_LINK
[example] example $ persistence setup --provider HIBERNATE --container
JBOSS_6 GLASSFISH_3 CUSTOM_JDBC CUSTOM_JTA CUSTOM_NON_JTA
[example] example $ persistence setup --provider HIBERNATE --container CUSTOM_JTA --database
MYSQL ORACLE DERBY DB2 POSTGRES DEFAULT DB2_AS400
DB2_OS390 MYSQL_INNODB MYSQL_ISAM ORACLE_9I ORACLE_10G SYBASE SYBASE_ANYWHERE
SQL_SERVER SAP_DB INFORMIX HSQLDB INGRES PROGRESS MCKOI
INTERBASE POINTBASE FRONTBASE FIREBIRD HSQLDB_IN_MEMORY ORACLE_11G ACCESS
[example] example $ persistence setup --provider HIBERNATE --container CUSTOM_JTA --database MYSQL --jndiDataSource jdbc:defaultJTA-ds
Wrote /home/lb3/Desktop/example/src/main/resources/META-INF/persistence.xml
[example] example $
[example] example $ cat /home/lb3/Desktop/example/src/main/resources/META-INF/persistence.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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="forge-default" transaction-type="JTA">
<description>Forge Persistence Unit</description>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>jdbc:defaultJTA-ds</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.transaction.flush_before_completion" value="true"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
</properties>
</persistence-unit>
</persistence>
[example] example $