You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Igor Drobiazko (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/19 14:08:10 UTC
[jira] [Resolved] (TAP5-1699) JpaValueEncoder.toValue throws NPE
when mapping annotations are placed on methods
[ https://issues.apache.org/jira/browse/TAP5-1699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko resolved TAP5-1699.
----------------------------------
Resolution: Fixed
Fix Version/s: 5.3
Thanks.
> JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods
> ---------------------------------------------------------------------------------
>
> Key: TAP5-1699
> URL: https://issues.apache.org/jira/browse/TAP5-1699
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-jpa
> Affects Versions: 5.3
> Reporter: Dimitris Zenios
> Assignee: Igor Drobiazko
> Priority: Blocker
> Fix For: 5.3
>
>
> There seems to be a problem with Tapestry-jpa value encoder.The problem is that propertyAdapter of JpaValueEncoder is null.In order to fix it, i had to change idPropertyName = idAttribute.getJavaMember().getName() to idPropertyName = idAttribute.getName();. I dont know if it matters but in my entities annotations are added on the methods and not on the properties.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira