|
Hibernate example source code file (CheckInActivity.java)
The Hibernate CheckInActivity.java source codepackage org.hibernate.envers.test.integration.inheritance.mixed.entities;
import org.hibernate.envers.Audited;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Audited
@Entity
@DiscriminatorValue(value = "CHECK_IN")
public class CheckInActivity extends AbstractCheckActivity {
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof CheckInActivity)) {
return false;
}
CheckInActivity checkInActivity = (CheckInActivity) obj;
return getId().equals(checkInActivity.getId());
}
@Override
public int hashCode() {
return getId().hashCode();
}
}
Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate CheckInActivity.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.