Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotations for class variable

 
ansar basha
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This question is not specific to ORM, however I'm posting it here as lots of ORM POJO code has this.

Do we have any annotations to have getter and setters for a given class variables rather than defining it separately.

Something like this

public class Test{
@get public
@set private
private int i;
}

thanks
ansar
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I haven't seen any shortcuts like this. You still gotta code your setters and getters.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic