Post
by dilbert » Tue 26 Jun 2012 09:29
Thank you for the comment. I agree that there is no need to generate a setter for autoincrement fields (at least in Sqlite).
However, generally, code that generates warnings could be confusing. Especially when there is a simple solution to generate setter with private access modifier or, even simpler, initialize its value in declaration (int _Id = 0).
I realize it isn't really a big issue and all real bugs should have higher priority. I'm just trying to keep my code without warnings...