You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by no...@comments.apache.org on 2016/12/24 00:27:13 UTC

Joshua Richardson commented on http://tapestry.apache.org/using-tapestry-with-hibernate.html

Hello,
    Joshua Richardson has commented on http://tapestry.apache.org/using-tapestry-with-hibernate.html. 
    You can find the comment here:
    http://tapestry.apache.org/using-tapestry-with-hibernate.html#comment_6108
    Please note that if the comment contains a hyperlink, it must be approved
    before it is shown on the site.

    Below is the reply that was posted:
    ~~~~
    After following the steps, the code works as advertised -- thanks!  Great tutorial!

I do see a warning in eclipse.  I don't generally like to have warnings in my code, but not sure what's the "Tapestry way" to avoid them (if any).  This is the warning I see when returning the session.createCriteria().list():

"The expression of type List needs unchecked conversion to conform to List<Address>"

Eclipse offers two "quick" fixes:

1)  "Infer Generic Type Arguments", which consists of a) assume clone() returns an instance of the receiver type, and b) leave unconstrained type arguments raw (rather than inferring <?>.  I'm not sure these will work, or if they are advisable, because I've always tried not to assume, and also not to use raw types.
2)  Add @SuppressWarnings to the function.  I try not to do that also, when I can avoid it, since it can hide issues.
    ~~~~

    With regards,
    The Apache Tapestry Project.

    You are receiving this email because you have subscribed to changes for the tapestry site.
    To stop receiving these emails, unsubscribe from the mailing list that is providing these notifications.
	    

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org