Skip to content

Instantly share code, notes, and snippets.

@galex
Created January 21, 2013 21:38
Show Gist options
  • Save galex/4589690 to your computer and use it in GitHub Desktop.
Save galex/4589690 to your computer and use it in GitHub Desktop.
Serializable entity with a transient serialVersionUID (to be compatible with stORM)
@Entity
public class Place implements Serializable {
private transient static final long serialVersionUID = 4536096422727404303L;
private long id;
private String title;
private double lat;
private double lng;
private String address;
private String uri;
private String description;
private String sector;
private String ownerName;
private String ownerEmail;
private String youtubeId;
private Type type;
// accessors
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment