sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Elmahrek (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-1351) Sqoop2: Annotation based Configuration object validation
Date Wed, 02 Jul 2014 17:25:25 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Abraham Elmahrek updated SQOOP-1351:
------------------------------------

    Description: 
Had the following in mind:

{code}
@FormClass
public class ConnectionForm {
  @Input(size = 128) public String jdbcDriver;
  ...
}
{code}

to

{code}
@FormClass
public class ConnectionForm {
  @Any(group="mygroup")
  @Input(size = 128, required = true)
  public String jdbcDriver;
  ...
}
{code}

  was:
Had the following in mind:

{code}
@FormClass
public class ConnectionForm {
  @Input(size = 128) public String jdbcDriver;
  ...
}
{code}

to

{code}
@FormClass
public class ConnectionForm {
  @Required(message="...")
  @Input(size = 128)
  public String jdbcDriver;
  ...
}
{code}


> Sqoop2: Annotation based Configuration object validation
> --------------------------------------------------------
>
>                 Key: SQOOP-1351
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1351
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Abraham Elmahrek
>
> Had the following in mind:
> {code}
> @FormClass
> public class ConnectionForm {
>   @Input(size = 128) public String jdbcDriver;
>   ...
> }
> {code}
> to
> {code}
> @FormClass
> public class ConnectionForm {
>   @Any(group="mygroup")
>   @Input(size = 128, required = true)
>   public String jdbcDriver;
>   ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message