blaze-persistence icon indicating copy to clipboard operation
blaze-persistence copied to clipboard

Support create view constructors containing just @MappingParameter parameters

Open beikov opened this issue 5 years ago • 0 comments

Currently we require an empty constructor in a view to generate the constructor which is used for EntityViewManager.create, but this is odd. Also, we currently don't validate if such a constructor exists for a @CreatableEntityView which might lead to an issue when invoking EntityViewManager.create. We should allow constructors that contain only @MappingParameter parameters and validate that for @CreatableEntityView classes:

  • [ ] ProxyFactory implementation for the support of mappingParameterOnlyConstructors
  • [ ] ImplementationClassWriter for the support of mappingParameterOnlyConstructors
  • [ ] Validation that @CreatableEntityView contains mappingParameterOnlyConstructors

beikov avatar Sep 10 '20 09:09 beikov