<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>Hibernate Community - Forums > JSR 380 Bean Validation feedback</title>
		<link>https://forum.hibernate.org/index.php</link>
	<!--<atom:link href="https://forum.hibernate.org/index.php" rel="alternate" type="application/rss+xml" />-->
		<description>Hibernate Community Forums</description>
		<language>en-gb</language>
		<copyright>Copyright (c) 2003 Hibernate Community</copyright>
		<managingEditor>webmaster@hibernate.org (Hibernate Community)</managingEditor>
		<webMaster>webmaster@hibernate.org (Hibernate Community)</webMaster>
		<pubDate>Tue, 14 Jul 2020 00:00:00 -0500</pubDate>
		<lastBuildDate>Tue, 14 Jul 2020 08:24:15 -0500</lastBuildDate>
		<generator>MSSTI RSS Feed 2.0 Version 1.0.9 - (C) 2008-2009 leviatan21 - http://www.mssti.com/</generator>

		<image>
			<title>Hibernate Community - Forums > JSR 380 Bean Validation feedback</title>
			<url>https://forum.hibernate.org/styles/hibernate/imageset/site_logo.gif</url>
			<link>https://forum.hibernate.org/index.php</link>
		</image>
		<ttl>60</ttl>
		
			<item>
			<title>JSR 380 Bean Validation feedback | Re: Automatic TCK coverage generated based on annotations</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2494034#p2494034</link>
				<description><![CDATA[Hi Gunnar<br />Thanks a lot for your reply. I'll check out the links you provided, and ask any futher questions on BV mailing list.<br /><br />Cheers <br />Phillip<hr />]]></description>
					<content:encoded><![CDATA[Hi Gunnar<br />Thanks a lot for your reply. I'll check out the links you provided, and ask any futher questions on BV mailing list.<br /><br />Cheers <br />Phillip]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2494034#p2494034</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | BeanValidation 2.0 integration with JavaFX</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2493893#p2493893</link>
				<description><![CDATA[  How do I integrate Bean Validation with JavaFX?<br /><br />I would like to make a<span style="font-weight: bold">bidirectional bind</span>  between the entity field and the javaFx controllers. In this scenario how could I validate fields using Bean Validation?<br /><br />Ex:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; <br />public class Category{<br />&nbsp; &nbsp; @NotNull(message = &quot;Name can't be null) <br />&nbsp; &nbsp; @Size(max = 255, min=3, message = &quot;Size name must be between 255 and 3&quot;)<br />&nbsp; &nbsp; private StringProperty name = new SimpleStringProperty();<br />&nbsp; &nbsp; //... getters &amp; setters<br />}<br /><br />//some fx Controller...<br />public</div><br />...<hr />]]></description>
					<content:encoded><![CDATA[  How do I integrate Bean Validation with JavaFX?<br /><br />I would like to make a<span style="font-weight: bold">bidirectional bind</span>  between the entity field and the javaFx controllers. In this scenario how could I validate fields using Bean Validation?<br /><br />Ex:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; <br />public class Category{<br />&nbsp; &nbsp; @NotNull(message = &quot;Name can't be null) <br />&nbsp; &nbsp; @Size(max = 255, min=3, message = &quot;Size name must be between 255 and 3&quot;)<br />&nbsp; &nbsp; private StringProperty name = new SimpleStringProperty();<br />&nbsp; &nbsp; //... getters &amp; setters<br />}<br /><br />//some fx Controller...<br />public</div><br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2493893#p2493893</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: @ParameterScriptAssert on Bean Validation 1.1</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2493478#p2493478</link>
				<description><![CDATA[Good, thank you!<hr />]]></description>
					<content:encoded><![CDATA[Good, thank you!]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2493478#p2493478</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: Bean Validation 2.0 CR3. Medellin JUG Results test</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2493103#p2493103</link>
				<description><![CDATA[  Hi Hilmer,<br /><br />Thanks for providing feedback on all these issues, that's muchappreciated!<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Our doubt is why the last one (hilmer@gmail) pass the validation<br /></div> <br /><br />We consider this in the RI as valid, as e.g. hilmer@localhost would be a valid address. IIUC, single-part domain names are valid (although uncommon). You can add a stricter validation via @Email#regexp().<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Our doubt is why did the validation take January First 2017 as a value of the present, this test was using Java Server Faces, but We made a second test<br /></div><br />...<hr />]]></description>
					<content:encoded><![CDATA[  Hi Hilmer,<br /><br />Thanks for providing feedback on all these issues, that's muchappreciated!<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Our doubt is why the last one (hilmer@gmail) pass the validation<br /></div> <br /><br />We consider this in the RI as valid, as e.g. hilmer@localhost would be a valid address. IIUC, single-part domain names are valid (although uncommon). You can add a stricter validation via @Email#regexp().<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Our doubt is why did the validation take January First 2017 as a value of the present, this test was using Java Server Faces, but We made a second test<br /></div><br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2493103#p2493103</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: Question about Bean Validation 1.1</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2492703#p2492703</link>
				<description><![CDATA[I would recommend to use a dedicated POJO/DTO for each of the two services. If that's not viable, take a look at group conversion:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">public void service1(@Valid @ConvertGroup(from=Default.class, to=Group1.class) MyDto dto) { ... }<br /><br />public void service2(@Valid @ConvertGroup(from=Default.class, to=Group2.class) MyDto dto) { ... }<br /></div><hr />]]></description>
					<content:encoded><![CDATA[I would recommend to use a dedicated POJO/DTO for each of the two services. If that's not viable, take a look at group conversion:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">public void service1(@Valid @ConvertGroup(from=Default.class, to=Group1.class) MyDto dto) { ... }<br /><br />public void service2(@Valid @ConvertGroup(from=Default.class, to=Group2.class) MyDto dto) { ... }<br /></div>]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2492703#p2492703</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: Test Bean Validation Oracle WebLogic</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2492170#p2492170</link>
				<description><![CDATA[  Hi,<br /><br />validation-api.jar is just the Bean Validation API. You need a compliant implementation to be able to use the features of Bean Validation 2.0.<br /><br />At the moment, you are using the implementations provided by the app server which is probably compliant with Bean Validation 1.1 but does not support the new features of Bean Validation 2.0.<br /><br />To make it work, you would need to override your app server BV implementation with the latest Hibernate Validator 6.0.0.Alpha2 which will be the RI of BV 2.0<br />...<hr />]]></description>
					<content:encoded><![CDATA[  Hi,<br /><br />validation-api.jar is just the Bean Validation API. You need a compliant implementation to be able to use the features of Bean Validation 2.0.<br /><br />At the moment, you are using the implementations provided by the app server which is probably compliant with Bean Validation 1.1 but does not support the new features of Bean Validation 2.0.<br /><br />To make it work, you would need to override your app server BV implementation with the latest Hibernate Validator 6.0.0.Alpha2 which will be the RI of BV 2.0<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2492170#p2492170</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: @NotNull and @UnwrapValidatedValue</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2492123#p2492123</link>
				<description><![CDATA[With Hibernate Validator 6.0.0.Alpha2, you can do the following:<br /><br />@NotNull(payload = Unwrapping.Skip)<br />private Optional&lt;Integer&gt; foo;<hr />]]></description>
					<content:encoded><![CDATA[With Hibernate Validator 6.0.0.Alpha2, you can do the following:<br /><br />@NotNull(payload = Unwrapping.Skip)<br />private Optional&lt;Integer&gt; foo;]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2492123#p2492123</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: Bean validation 2.0 question</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2490886#p2490886</link>
				<description><![CDATA[  Which method on `Validator` are you invoking? I reckon it's validateValue() or validateProperty()? Note that cascaded validation isn't supported for these in the BV spec, although HV (the implementation) is trying to do it. If you file an issue in our JIRA tracker with a small but complete example, we can try and take a look.<br /><br />Btw. BV 2.0 is in the works currently, HV 5.3.2 implements BV 1.1. We already have experimental support for collection element constraints as you are trying to use them in<br />...<hr />]]></description>
					<content:encoded><![CDATA[  Which method on `Validator` are you invoking? I reckon it's validateValue() or validateProperty()? Note that cascaded validation isn't supported for these in the BV spec, although HV (the implementation) is trying to do it. If you file an issue in our JIRA tracker with a small but complete example, we can try and take a look.<br /><br />Btw. BV 2.0 is in the works currently, HV 5.3.2 implements BV 1.1. We already have experimental support for collection element constraints as you are trying to use them in<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2490886#p2490886</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Non-empty default groups</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2490840#p2490840</link>
				<description><![CDATA[  I want to make annotations that are already 'grouped' to increase readability (decrease visual noise). The name of the Constraint Annotation is already extremely clear for when the validation willoccur.<br /><br />Specifically:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &nbsp;@RequiredForCreateAttribute<br />&nbsp; &nbsp;@UpdatableAttribute(false)<br />&nbsp; &nbsp;public String getKey() {<br />&nbsp; &nbsp;&nbsp; &nbsp;return key;<br />&nbsp; &nbsp;}<br /></div> <br /><br />is easier to use and read for me than this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &nbsp;@NotNull(groups = CreateValidation.class)<br />&nbsp; &nbsp;@Null(groups = UpdateValidation.class)<br />&nbsp; &nbsp;public String getKey() {<br />&nbsp; &nbsp;&nbsp; &nbsp;return key;<br />&nbsp; &nbsp;}<br /></div><br />...<hr />]]></description>
					<content:encoded><![CDATA[  I want to make annotations that are already 'grouped' to increase readability (decrease visual noise). The name of the Constraint Annotation is already extremely clear for when the validation willoccur.<br /><br />Specifically:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &nbsp;@RequiredForCreateAttribute<br />&nbsp; &nbsp;@UpdatableAttribute(false)<br />&nbsp; &nbsp;public String getKey() {<br />&nbsp; &nbsp;&nbsp; &nbsp;return key;<br />&nbsp; &nbsp;}<br /></div> <br /><br />is easier to use and read for me than this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &nbsp;@NotNull(groups = CreateValidation.class)<br />&nbsp; &nbsp;@Null(groups = UpdateValidation.class)<br />&nbsp; &nbsp;public String getKey() {<br />&nbsp; &nbsp;&nbsp; &nbsp;return key;<br />&nbsp; &nbsp;}<br /></div><br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2490840#p2490840</guid>		</item>
			<item>
			<title>JSR 380 Bean Validation feedback | Re: An annotation to reference other object annotations...</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2485954#p2485954</link>
				<description><![CDATA[  Hi,<br /><br />Could you open an issue at the BV spec tracker (https://hibernate.atlassian.net/browse/BVAL) so the feature can be discussed for inclusion in a future BV revision?<br /><br />One way you could solve your problem already today would be to query the constraint metadata (see Validator#getConstraintsForClass()) of one model and use that to drive dynamic creation of equivalent constraints on the other model using the Hibernate Validator API for programmatic constraint declaration (see http://docs.jboss.org/hibernate/validator/5.2/reference/en-US/html_single/#section-programmatic-api).<br /><br />Hth,<br /><br />--GUnnar<br />...<hr />]]></description>
					<content:encoded><![CDATA[  Hi,<br /><br />Could you open an issue at the BV spec tracker (https://hibernate.atlassian.net/browse/BVAL) so the feature can be discussed for inclusion in a future BV revision?<br /><br />One way you could solve your problem already today would be to query the constraint metadata (see Validator#getConstraintsForClass()) of one model and use that to drive dynamic creation of equivalent constraints on the other model using the Hibernate Validator API for programmatic constraint declaration (see http://docs.jboss.org/hibernate/validator/5.2/reference/en-US/html_single/#section-programmatic-api).<br /><br />Hth,<br /><br />--GUnnar<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2485954#p2485954</guid>		</item>
	
	</channel>
</rss>