Jump to content
We've recently updated our Privacy Statement, available here ×

tranvi3t

Members
  • Posts

    2
  • Joined

  • Last visited

tranvi3t's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I appreciate the suggestion. However, my issue is that I need to map the property names in the Java class to the field names in the .jrxml report template file, instead of the other way around. I'm exploring other options, such as creating a custom data source or using a third-party library that supports this type of mapping. Thank you for your help
  2. Hi everyone, I'm using JasperReports library to generate reports from my Java classes. I'm wondering if there is a way to map property names in my Java classes to field name in the .jrxml report template file, instead of having to follow the exact field names in the .jrxml? For example, I may have a Java class with a field "customerName", but in the .jrxml file I want the field to be called "customer_name" instead. Is there a way to specify this mapping, so I don't have to change my Java class field names? Does there exist any annotation like @Field that can achieve this? Any help would be greatly appreciated. Thank you!
×
×
  • Create New...