• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Generate 1 dto to another dto convertor using freemaker. Stuck at the generating enum type1 to enum

Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using freemaker to generate dto convertor from one type to another. Defining things through custom annotations E.g:

@CustomAnnotationTargetDTO(type=DTO2) Class DTO1 {

@CustomAnnotationTargetProperty(propertyName="gender") private String sex;


like this i have invented different annotations that i use to map a class and its properties to other type.

I now have a Enumeration in a DTO. Any idea on the similar lines that how i map 1 type to another.

I was thinking on the lines

@CustomAnnotationTargetEnum(xmlEnum="Type2Enum") public enum Type1Enum {

//other stuff below

A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic