storm-gen
storm-gen copied to clipboard
Exclude a variable
See https://code.google.com/p/storm-gen/issues/detail?id=37
Reported by brhargett, Jun 19, 2013 I am using this in conjunction with Square's open source project Tape. Tape requires a Serializable class and for completeness I wanted to have the serialVersionUID, event though it is static and final storm-gen the TableHelper expects a getter/setter for it. Which essentially is a waste. So, if an annotation can be added to control whether or not the field will be part of the entity generation or not would be great.
Aug 22, 2013 Delete comment #1 livebydeath I use serialVersionUID throughout my object classes and I do not require a getter / setter when I do my serialVersionUID as private static final long
But to throw it out there, if you have a member that you want to be ignored by storm-gen, add the keyword transient to the member.
Aug 22, 2013 Delete comment #2 brhargett As stated I am using serialization and transient is not an option in all cases.
I get this error with my serialVersionUID: private static final long serialVersionUID = 1L;
The method getSerialVersionUID() is undefined for the type WallpaperInfo WallpaperInfoTable.java /.../aptGen/com/.../android/.../db/dao line 136