You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2011/10/19 14:34:10 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13130541#comment-13130541 ]
Hudson commented on TAP5-1699:
------------------------------
Integrated in tapestry-trunk-freestyle #589 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/589/])
TAP5-1699: JpaValueEncoder.toValue throws NPE when mapping annotations are placed on methods
drobiazko : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1186134
Files :
* /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/JpaValueEncoder.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/main/java/org/apache/tapestry5/internal/jpa/PersistenceParser.java
* /tapestry/tapestry5/trunk/tapestry-jpa/src/test/java/org/example/app1/entities/User.java
> 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