|
Hibernate example source code file (Part.java)
The Hibernate Part.java source code//$Id: Part.java 5686 2005-02-12 07:27:32Z steveebersole $ package org.hibernate.test.mapcompelem; /** * @author Gavin King */ public class Part { private String name; private String description; Part() {} public Part(String n, String pw) { name=n; description = pw; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String password) { this.description = password; } public boolean equals(Object that) { return ( (Part) that ).getName().equals(name); } public int hashCode() { return name.hashCode(); } public String toString() { return name + ":" + description; } } Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Part.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.