Book a Demo

Author Topic: Annotations Java - How to make the imports?  (Read 12162 times)

Stefan Chapuis

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Annotations Java - How to make the imports?
« on: August 17, 2012, 07:25:21 pm »
I'm trying to do a Java JPA model with the EA. So I use the JPA annotations like @Entity. For this I wrote Tagged Values named annotations in the class or attribute. Everything works fine, but when I generate the Java code, there are no imports for the annotations. So I have to do it manually.

How can I add the import for a annotations in the EA?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Annotations Java - How to make the imports?
« Reply #1 on: August 27, 2012, 08:47:34 pm »
You should look into the code generation templates.

Geert