[JBoss JIRA] (FORGE-1852) Parameter --beanValidationVersion missing in constraint-setup
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-1852:
----------------------------------------
Summary: Parameter --beanValidationVersion missing in constraint-setup
Key: FORGE-1852
URL: https://issues.jboss.org/browse/FORGE-1852
Project: Forge
Issue Type: Feature Request
Components: Java EE
Affects Versions: 2.6.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
Most {{setup}} commands have a version parameter to choose which version you want to use :
{code}
cdi-setup --cdiVersion
ejb-setup --ejbVersion
faces-setup --facesVersion
jms-setup --jmsVersion
jpa-setup --jpaVersion
rest-setup --jaxrsVersion
websocket-setup --webSocketVersion
{code}
At the moment, the only Java EE component that misses this parameter is Bean Validation. The {{constraint-setup}} command has the following parameters :
{code}
[test]$ constraint-setup TAB
--providers --providedScope
{code}
A parameter {{beanValidationVersion}} parameter should be added. The values would be 1.0 or 1.1. That will have an impact on the XSD of the generated {{validation.xml}} file and the dependencies in the {{pom.xml}}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months
[JBoss JIRA] (FORGE-451) Warn a user if generating relationship CRUD screens and HashCode/Equals are missing
by Matej Briskar (JIRA)
[ https://issues.jboss.org/browse/FORGE-451?page=com.atlassian.jira.plugin.... ]
Matej Briskar commented on FORGE-451:
-------------------------------------
I already created the _GenerateHashCodeEqualsCommand_ in the _parser-java_. However, I am not sure which way to go to finish the issue.
Possible solution that I would rather discuss is:
Adding a new _FacesEntityValidationWizard_ in the _FacesScaffoldProvider.getGenerationFlow()_ just after _ScaffoldableEntitySelectionWizard_ that will take care of the validation of the selected entites and if some checkbox selected, generate the HashCode/Equals for each entity.
Could/Shouldn't this be somehow implemented in _ScaffoldableEntitySelectionWizard_ to provide a more general option for each ScaffoldImpl to provide an EntityValidationWizard?
> Warn a user if generating relationship CRUD screens and HashCode/Equals are missing
> -----------------------------------------------------------------------------------
>
> Key: FORGE-451
> URL: https://issues.jboss.org/browse/FORGE-451
> Project: Forge
> Issue Type: Feature Request
> Components: Scaffold
> Affects Versions: 1.0.6.Final
> Reporter: Pete Muir
> Assignee: Matej Briskar
> Labels: Starter
> Fix For: 2.x Future
>
>
> It's necessary to provide these on the entities in order for drop downs to work. If not provided, there should be a WARN message.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
10 years, 6 months