[JBoss JIRA] (FORGE-1520) Use Java EE 7 Default Datasource in persistence.xml
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1520?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1520:
-------------------------------------
Parent Issue: FORGE-1491 (was: FORGE-1505)
> Use Java EE 7 Default Datasource in persistence.xml
> ---------------------------------------------------
>
> Key: FORGE-1520
> URL: https://issues.jboss.org/browse/FORGE-1520
> Project: Forge
> Issue Type: Sub-task
> Components: Scaffold
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> If I create project with default values I get the following {{persistence.xml}} :
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
> <persistence-unit name="forge-default" transaction-type="JTA">
> <description>Forge Persistence Unit</description>
> <jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source>
> <exclude-unlisted-classes>false</exclude-unlisted-classes>
> <properties>
> <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/>
> <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/>
> <property name="javax.persistence.schema-generation.scripts.create-target" value="pluralsight-persistenceCreate.ddl"/>
> <property name="javax.persistence.schema-generation.scripts.drop-target" value="pluralsight-persistenceDrop.ddl"/>
> </properties>
> </persistence-unit>
> </persistence>
> {code}
> This code doesn't work in GlassFish because of the Datasource {{java:jboss/datasources/ExampleDS}}.
> This {{persistence.xml}} is JPA 2.1 compatible, so you should use the default Datasource that is portable accross application server : just get rid of the {{<jta-data-source>}} element and it will work on both GlassFish and WildFly 8 CR1.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (FORGE-1449) Copy/pasting several line in the Forge only pastes and executes the 1st line
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1449?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1449:
-------------------------------------
Parent Issue: FORGE-1491 (was: FORGE-1505)
> Copy/pasting several line in the Forge only pastes and executes the 1st line
> ----------------------------------------------------------------------------
>
> Key: FORGE-1449
> URL: https://issues.jboss.org/browse/FORGE-1449
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Environment: OS X Mavericks (10.9.1).
> JDK version "1.7.0_51"
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> I have a few commands in a text file :
> {code}
> jpa-new-entity --named Book ;
> jpa-new-field --named isbn ;
> jpa-new-field --named title ;
> jpa-new-field --named author ;
> jpa-new-field --named description --length 2000 ;
> {code}
> When I copy paste these 5 lines in the Forge shell I get :
> {code}
> [Book.java]$ jpa-new-field --named isbn ;
> ***SUCCESS*** Field isbn created
> [Book.java]$
> {code}
> Only the first line is pasted and executed (the other lines are ignored)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (FORGE-1448) Cannot cd an Entity with TAB completion
by Lincoln Baxter III (JIRA)
[ https://issues.jboss.org/browse/FORGE-1448?page=com.atlassian.jira.plugin... ]
Lincoln Baxter III closed FORGE-1448.
-------------------------------------
Fix Version/s: 2.0.0.Final
(was: 2.x Future)
Resolution: Done
Enabled CD into files. (Still need to implement CD into virtual resources)
> Cannot cd an Entity with TAB completion
> ---------------------------------------
>
> Key: FORGE-1448
> URL: https://issues.jboss.org/browse/FORGE-1448
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Assignee: Lincoln Baxter III
> Fix For: 2.0.0.Final
>
>
> When I create 2 entities, I can {{cd}} from on to another if I specify the class, but it doesn't work with TAB completion :
> {code}
> [Speaker.java]$ cd ../Talk.java
> [Talk.java]$ cd ../Speaker.java
> [Speaker.java]$ cd ../T TAB
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (FORGE-1527) JSF converters shouldn't be created under the model subpackage
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1527?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1527.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.0.0.Final
(was: 2.x Future)
Resolution: Done
Created under {{converter}} sub-package
> JSF converters shouldn't be created under the model subpackage
> --------------------------------------------------------------
>
> Key: FORGE-1527
> URL: https://issues.jboss.org/browse/FORGE-1527
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.0.0.Final
>
>
> The {{model}} package is for entites or business model objects, JSF converters should be stored somewhere else
> {code}
> [MyEntity.java]$ faces-new-converter --named MyFacesConverter
> ***SUCCESS*** Converter org.Test2Scf.model.MyFacesConverter created
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (FORGE-1452) web.xml is Servlet 3.0 instead of 3.1
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1452?page=com.atlassian.jira.plugin... ]
Antonio Goncalves closed FORGE-1452.
------------------------------------
Resolution: Done
I can't reproduce either, I've just tested several setup combinations. It's 3.1 by default
> web.xml is Servlet 3.0 instead of 3.1
> -------------------------------------
>
> Key: FORGE-1452
> URL: https://issues.jboss.org/browse/FORGE-1452
> Project: Forge
> Issue Type: Sub-task
> Components: Scaffold
> Affects Versions: 2.0.0.CR2
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> When creating entities, adding constraints, scaffolding REST and JSF, we end up with Java EE 7 deployment descriptors (e.g. {{beans.xml}} is in 1.1, {{faces-config.xml}} is in 2.2.....) except for the {{web.xml}} that is still in 3.0 instead of 3.1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months