Java Annotations?

Time for a nice simple question :-)

I'm working on generating some Java JPA code, and I can't  figure out how to place (JPA) annotations above class or method identifiers in my templates.

Any pointers much appreciated!

3 comments
Comment actions Permalink

OK, figured it out, had to hit ALT+ENTER on the class,  adding an annotation is an intention. :-O

0
Comment actions Permalink

Have also a look at the inspector when your cursor is over the desired concept.

-- mirko

0
Comment actions Permalink

Trying to add JPA annotations is not working for me.
Only a few standard annotations showed up after pressing ALT+ENTER.

I think some kind of a java.persistence language extension is needed.
Does MPS already support JPA annotations out of the box? If yes how to use it?

0

Please sign in to leave a comment.