Lombok: @GetSet annotation for Jpa/Hibernate Entities

Created on 18 Dec 2017  路  2Comments  路  Source: projectlombok/lombok

Could you add a new annotation from get and set combinations. We dont use @data annotation with jpa/hibernate entities, becouse the hashcode generation can affect hibernate.

So, using @setter @getter annotations separately creates two lines of code pollution.

Thanks.

@Getter
@Setter
public @interface GetSet { }

Most helpful comment

You can put them on one line.

All 2 comments

You can put them on one line.

yes we can write in a single line is an ingenious idea but the ide's standard formats automatically convert it to double lines :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelkuechler picture michaelkuechler  路  3Comments

Bryksin picture Bryksin  路  3Comments

gardenias picture gardenias  路  3Comments

zenglian picture zenglian  路  3Comments

rdsubhas picture rdsubhas  路  3Comments