[forge-issues] [JBoss JIRA] (FORGE-2101) jpa-new-field command should have a --nullable attribute

Antonio Goncalves (JIRA) issues at jboss.org
Tue Oct 28 12:57:35 EDT 2014


    [ https://issues.jboss.org/browse/FORGE-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015614#comment-13015614 ] 

Antonio Goncalves commented on FORGE-2101:
------------------------------------------

Of course we could even go further :

{code}
field string --named title --nullable=false --update=true --insertable=false;
{code}

You will get :

{code}
@Column(nullable = false, updatable = true, insertable = false)
private String title;
{code}


> jpa-new-field command should have a --nullable attribute
> --------------------------------------------------------
>
>                 Key: FORGE-2101
>                 URL: https://issues.jboss.org/browse/FORGE-2101
>             Project: Forge
>          Issue Type: Sub-task
>          Components: Java EE
>    Affects Versions: 2.12.1.Final
>            Reporter: Antonio Goncalves
>             Fix For: 2.x Future
>
>
> It would be good to be able to set the nullable attribute of a field on an entity. If you do :
> {code}
> field string --named title --nullable true;
> {code}
> You will get :
> {code}
> @Column(nullable = true)
> private String title;
> {code}
> That's important for DDL generation



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list