[JBoss JIRA] (FORGE-1398) Being able to create embeddables
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1398?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1398:
-------------------------------------
Affects Version/s: 2.0.0.Final
(was: 2.0.0.Beta4)
> Being able to create embeddables
> --------------------------------
>
> Key: FORGE-1398
> URL: https://issues.jboss.org/browse/FORGE-1398
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> As per [FORGE-797] it would be good to have a new command to create an embeddable :
> {code}
> jpa-new-embeddable --named Address ;
> jpa-new-field --named street1 --length 50 ;
> jpa-new-field --named street2 ;
> jpa-new-field --named city --length 50 ;
> jpa-new-field --named state ;
> {code}
> Then, how do we embed it into a entity ? We could have a new {{--relationshipType}} :
> {code}
> jpa-new-entity --named Customer ;
> jpa-new-field --named address --entity org.agoncal.application.petstore.model.Address --relationshipType Embedded ;
> {code}
> Except {{Address}} is not an entity. So having {{--entity}} pointing to an embeddable looks strange
--
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, 3 months
[JBoss JIRA] (FORGE-1444) jpa-new-field --entity disapearing on TAB completion
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1444?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1444:
-------------------------------------
Affects Version/s: 2.0.0.Final
(was: 2.0.0.Beta4)
> jpa-new-field --entity disapearing on TAB completion
> ----------------------------------------------------
>
> Key: FORGE-1444
> URL: https://issues.jboss.org/browse/FORGE-1444
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Final
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> I want to create a One-to-Many relationship. When I type the following and hit TAB, I get the {{--entity}} parameter
> {code}
> [Talk.java]$ jpa-new-field --named speakers --
> --typeName --lob --relationshipType --entity --length --primitive
> {code}
> But if I set the relationship first, and then hit TAB, the {{--entity}} parameter doesn't show
> {code}
> [Talk.java]$ jpa-new-field --named speakers --relationshipType One-to-Many --
> --inverseFieldName --cascadeType --fetchType --required
> {code}
> Looks like there is an order on the parameters (e.g. if you enter one, then something else doesn't show up), but it's not very clear
--
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, 3 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:
-------------------------------------
Description:
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)
was:
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}
The first two lines have been executed and then the shell hangs. CTRL+C doesn't work, I can't type anything (e.g. exit) so I need to kill the process
> 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.CR1
> 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, 3 months
[JBoss JIRA] (FORGE-1483) Rename entities-from-tables command
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1483?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1483:
-------------------------------------
Summary: Rename entities-from-tables command (was: Rename entities-from-tables comment)
> Rename entities-from-tables command
> -----------------------------------
>
> Key: FORGE-1483
> URL: https://issues.jboss.org/browse/FORGE-1483
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR1
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> The command {{entities-from-tables}} is related to jpa and should be renamed. Following what we have with {{rest-endpoint-from-entity}}, the command should be :
> {code}
> jpa-entity-from-tables
> {code}
> Or maybe it would be better to mention the database, not the tables :
> {code}
> jpa-entity-from-database
> {code}
> Or for short :
> {code}
> jpa-entity-from-db
> {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, 3 months
[JBoss JIRA] (FORGE-1481) Code completion missing for --targetPackage on java-new-enum
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1481?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1481:
-------------------------------------
Description:
TAB code completion is missing for {{--targetPackage}} :
{code}
java-new-enum --named Language --targetPackage TAB
{code}
When pressing TAB, nothing happens. I would expect to have code completion with existing packages.
was:
TAB code completion is missing for {{--packageName}} :
{code}
java-new-enum --named Language --packageName TAB
{code}
When pressing TAB, nothing happens. I would expect to have code completion with existing packages.
> Code completion missing for --targetPackage on java-new-enum
> ------------------------------------------------------------
>
> Key: FORGE-1481
> URL: https://issues.jboss.org/browse/FORGE-1481
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.CR1
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> TAB code completion is missing for {{--targetPackage}} :
> {code}
> java-new-enum --named Language --targetPackage TAB
> {code}
> When pressing TAB, nothing happens. I would expect to have code completion with existing packages.
--
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, 3 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:
-------------------------------------
Comment: was deleted
(was: With the very latest SNAPSHOT (22/01/2014) it doesn't hang anymore, but copying several lines, only pastes the first lines and executes it (the other lines are omitted))
> 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.CR1
> 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}
> The first two lines have been executed and then the shell hangs. CTRL+C doesn't work, I can't type anything (e.g. exit) so I need to kill the process
--
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, 3 months
[JBoss JIRA] (FORGE-1445) ls command on an entity is not as clear
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1445?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1445:
-------------------------------------
Parent Issue: FORGE-1491 (was: FORGE-1387)
> ls command on an entity is not as clear
> ---------------------------------------
>
> Key: FORGE-1445
> URL: https://issues.jboss.org/browse/FORGE-1445
> Project: Forge
> Issue Type: Sub-task
> Components: UI - Shell
> Affects Versions: 2.0.0.Beta4
> Reporter: Antonio Goncalves
> Fix For: 2.x Future
>
>
> When I've created an entity and type the {{ls}} command, in Forge 1.x I have the following (in color) :
> {code}
> [forge1] Talk.java $ ls
> [fields]
> private::Date::date; private::Long::id; private::String::description; private::String::room; private::String::title;
> private::int::version;
> [methods]
> public::equals(Object that)::boolean public::getDate()::Date public::getDescription()::String
> public::getId()::Long public::getRoom()::String public::getTitle()::String
> public::getVersion()::int public::hashCode()::int public::setDate(final Date date)::void
> public::setDescription(final String description)::void public::setId(final Long id)::void public::setRoom(final String room)::void
> public::setTitle(final String title)::void public::setVersion(final int version)::void public::toString()::String
> {code}
> While in Forge 2.Beta I have :
> {code}
> [Talk.java]$ ls
> date::Date getDate()::Date getRoom()::String hashCode()::int setDate(Date)::void setRoom(String)::void title::String
> description::String getDescription()::String getTitle()::String id::Long setDescription(String)::void setTitle(String)::void toString()::String
> equals(Object)::boolean getId()::Long getVersion()::int room::String setId(Long)::void setVersion(int)::void version::int
> {code}
> Despite the Forge 1.x output being in color and not the Forge 2.Beta output (which always helps in readability), there is not separation between {{[fields]}} and {{[methods]}}
--
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, 3 months