Announcement Announcement Module
Collapse
No announcement yet.
Returning JPA annotated object is slow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Returning JPA annotated object is slow

    Hi,

    I use flex 4.5, BlazeDS 4 and Spring-flex 1.5.

    When I try to return objects annotated with javax.persistence.*, Spring converts the object values:
    11:33:00:819 - DEBUG - ? - Actual type of value for property 'testing' on instance com.test.TestClass@299e299e is class java.lang.String
    11:33:00:826 - DEBUG - ? - Converting value 'valueTest' of java.lang.String to @javax.persistence.Column java.lang.String
    11:33:00:830 - DEBUG - ? - Converted to 'valueTest'
    ---

    So when many objects with many annotated variables are returned the response time is way too slow. If I create an object without the javax.persistence.* annotations and copy all the values to this class before returning, everything works as it should. Can someone explain why this happens?
Working...
X