<div dir="ltr"><div class="gmail_extra">2013/1/18 Emmanuel Bernard <span dir="ltr"><<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div id=":2x2">Do you think it makes sense to force people to always use getter for<br>
getters? My only concern is that it might feel awkward for what I call<br>
action getters that people don't consider getters.</div></blockquote><div><br></div><div style>Hum, I don't think it makes sense to enforce this. The idea is that you can chose to use either "getter":</div>
<div style><br></div><div style><div> <getter name="foo"></div><div> <valid/><br></div><div> <constraint annotation="javax.validation.constraints.NotNull"/></div><div>
</getter></div><div><br></div></div></div>or "method" (e.g. for an "action getter"):</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div> <method name="getFoo"></div>
<div style> <return-value></div><div style> <valid/></div><div> <constraint annotation="javax.validation.constraints.NotNull"/></div><div> </return-value><br>
</div><div> </method></div><br></div><div class="gmail_extra" style>as you like, but not both at the same time as they could conflict (similar to that you must not have two "getter" elements with the same name).</div>
</div>