<div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/6f44b16ea02da3aee5430debe1fad69540189e7b.png?u=3240016"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div>Hello hibernate-users:</div><div><br></div><div>I hope this isn&#39;t a FAQ but I am curious...</div><div><br></div><div>I believe a method can only have 254 parameters as indicated here:</div><div><br></div><div><a href="https://mailtrack.io/trace/link/2e37ed64c46e377992fd12c5ebf1dd7793d7048c?url=https%3A%2F%2Fdocs.oracle.com%2Fjavase%2Fspecs%2Fjvms%2Fse11%2Fhtml%2Fjvms-4.html%23jvms-4.11&amp;userId=3240016&amp;signature=940f52cff701b6f7">https://docs.oracle.com/javase/specs/jvms/se11/html/jvms-4.html#jvms-4.11</a><br></div><div><br></div><div>My guess is that a constructor has a similar limit and won&#39;t compile anyway.</div><div><br></div><div>So, if one had a very large table, say 1000 columns or more, would Hibernate use the setters in the object to load/populate the members of the JPA object? Or, would Hibernate throw an exception because of the limit on the number parameters of the constructor?</div><div><br></div><div>The question came to mind as I was looking at the @ConstructorResult that goes within @SqlResultSetMapping -- which I typically use just for come some custom data objects returned from a namedquery.  (My use cases are typically FAR below 255 columns.)</div><div><br></div><div>Again, not a burning item but just wondering if the constructor in Java could/would obstruct Hibernate in mapping a large number of columns to a JPA object. What would the AttributeConverter do?</div><div><br></div><div>Cordially,</div><div>Dennis</div><div><br></div><div><br></div></div></div></div></div></div></div>