|
Hibernate example source code file (Broken.java)
The Hibernate Broken.java source code//$Id: Broken.java 4599 2004-09-26 05:18:27Z oneovthafew $ package org.hibernate.test.legacy; import java.io.Serializable; import java.util.Date; /** * @author Gavin King */ public class Broken implements Serializable { private Long id; private String otherId; private Date timestamp; public Long getId() { return id; } public Date getTimestamp() { return timestamp; } public void setId(Long long1) { id = long1; } public void setTimestamp(Date date) { timestamp = date; } public String getOtherId() { return otherId; } public void setOtherId(String string) { otherId = string; } public boolean equals(Object other) { if ( !(other instanceof Broken) ) return false; Broken that = (Broken) other; return this.id.equals(that.id) && this.otherId.equals(that.otherId); } public int hashCode() { return 1; } } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Broken.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.