Need a way of setting up any kind of JPA configuration
------------------------------------------------------
Key: SEAMFORGE-33
URL:
https://issues.jboss.org/browse/SEAMFORGE-33
Project: Seam Forge
Issue Type: Feature Request
Components: Brainstorming
Affects Versions: 1.0.0.Alpha1
Environment: All
Reporter: Lincoln Baxter III
Assignee: Lincoln Baxter III
Labels: JPA
Fix For: 1.0.0.Alpha2
[example] example $
[example] example $
[example] example $
[example] example $ persistence setup --
--provider --container --database --unitName --unitDesc
--jndiName --jdbcDriver --databaseURL
--username --password
[example] example $ persistence setup --container
JBOSS_6_JTA GLASSFISH_3_JTA CUSTOM_NON_JTA
[example] example $ persistence setup --container JBOSS_6_JTA --provider
HIBERNATE ECLIPSE_LINK
[example] example $ persistence setup --container JBOSS_6_JTA --provider ECLIPSE_LINK
--database
--database --databaseURL
[example] example $ persistence setup --container JBOSS_6_JTA --provider ECLIPSE_LINK
--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
[example] example $ persistence setup --container JBOSS_6_JTA --provider ECLIPSE_LINK
--database MYSQL
MYSQL MYSQL_INNODB MYSQL_ISAM
[example] example $
[example] example $
[example] example $ persistence setup --container JBOSS_6_JTA --provider ECLIPSE_LINK
--database MYSQL --jndiName jdbc:mySqlDbJNDI
Wrote /home/lb3/Desktop/example/src/main/resources/META-INF/persistence.xml
[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.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc:mySqlDbJNDI</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.ddl-generation"
value="drop-and-create-tables"/>
<property name="eclipselink.target-database"
value="org.eclipse.persistence.platform.database.MySQLPlatform"/>
</properties>
</persistence-unit>
</persistence>
[example] example $
--
This message is automatically generated by JIRA.
For more information on JIRA, see: