@Entity public class Album extends BaseObject
class for a sibling example that will accept the parent
mapping defaults.
Modifier and Type | Field and Description |
---|---|
private String |
artist |
private String |
title |
Constructor and Description |
---|
Album() |
Modifier and Type | Method and Description |
---|---|
String |
getArtist() |
long |
getId() |
String |
getName() |
String |
getTitle() |
void |
setArtist(String artist) |
protected void |
setId(long id) |
void |
setTitle(String title) |
String |
toString() |
getVersion, setVersion
public long getId()
getId
in class BaseObject
protected void setId(long id)
setId
in class BaseObject
public String getArtist()
public void setArtist(String artist)
public String getTitle()
public void setTitle(String title)
public String getName()
getName
in class BaseObject
public String toString()
toString
in class BaseObject
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.