Thank you labatymo. But I already have an entity class. Netbeans generated it for me.
It looks like what u posted but with this at the end
Code
@Override
public int hashCode() {
int hash = 0;
hash += (idnr != null ? idnr.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof play)) {
return false;
}
play other = (play) object;
if ((this.idnr == null && other.idnr != null) || (this.idnr != null && !this.idnr.equals(other.idnr))) {
return false;
}
return true;
}
@Override
public String toString() {
return "holdem.play[idnr=" + idnr + "]";
}
But i don't understand how this helps me!
For example. What would the code look like if a player had lost some points and the roll forf that player needed to be updated in the database. ?
Im sorry that I don't understand this. But if I did I would not have posted

When I look in /src/META-INF/persistence.xml It also look almost like u posted. This was generted automaticly when I made the database connection.
Hope U can explain how this works so I can make code in my program to communicate with my database.
What are the commands like. Think I must use commands like these
http://www.roseindia.net/jsp/execute-sql-query.shtmlSorry that im too thick headed to understand this.
This post was edited by tigeranden on Mar 20 2013 12:40pm