Code example for HashSet

0
	private Long id;
 
	private String data;
 
	@OneToMany(mappedBy = "references") 
	private Set<ManyToOneOwning> referencing = new HashSet<ManyToOneOwning>();
 
	public OneToManyOwned() { 
	} 
 
	public OneToManyOwned(String data, Set<ManyToOneOwning> referencing) {
		this.data = data;
		this.referencing = referencing;
	} 
 
	public OneToManyOwned(String data, Set<ManyToOneOwning> referencing, Long id) {
		this.id = id;
		this.data = data;
		this.referencing = referencing;
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE