What is the use of @Generated annotation

270 views
Skip to first unread message

Ramkumar Pillai

unread,
Nov 23, 2016, 2:46:05 PM11/23/16
to Project Lombok
i found this annotation in 1.16.10 
what is it meant for, will it be used to create ID generator ?


@Id @lombok.Generated
private String id;

Martin Grajcar

unread,
Nov 23, 2016, 4:12:57 PM11/23/16
to project...@googlegroups.com
If you mean something like JPA/Hibernate, then no way. It's a completely unrelated marker that the code piece has been generated (so that e.g., static analysis tools can ignore it).

It gets put on parts generated by lombok. IMHO it makes no sense on this field.

--
You received this message because you are subscribed to the Google Groups "Project Lombok" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-lombok+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages