Commit 8386892f authored by Arne Styve's avatar Arne Styve
Browse files

Started adding support for ORM and JPA

parent 3cd42ed9
<component name="libraryTable">
<library name="libs">
<CLASSES>
<root url="file://$PROJECT_DIR$/libs" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$PROJECT_DIR$/libs" recursive="false" />
</library>
</component>
\ No newline at end of file
......@@ -7,5 +7,6 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="libs" level="project" />
</component>
</module>
\ No newline at end of file
Manifest-Version: 1.0
Created-By: 1.8.0_201 (Oracle Corporation)
Main-Class: no.ntnu.idata2001.contacts.views.ContactsApp
package no.ntnu.idata2001.contacts.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* Holds details about a contact, like name, address and phone number.
......@@ -10,7 +13,11 @@ import java.io.Serializable;
* @author David J. Barnes and Michael Kölling and Arne Styve
* @version 2020.03.16
*/
@Entity
public class ContactDetails implements Comparable<ContactDetails>, Serializable {
@Id
@GeneratedValue
private Integer id; // A unique ID
private String name;
private String phone;
private String address;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment