quick beginner's question
(this is cross-posted, i think this forum is more appropriate than the 'javabeans' forum i originally posted in)
i was reading this from an O'Reilly book. What do the @ symbols mean? I didn't see a clear explanation of that...
import javax.persistence.* ;
@Entity
@Table(name="CABIN")
publicclass Cabin{
privateint id;
private String name;
privateint deckLevel;
@Id
@GeneratedValue
@Column(name="CABIN_ID")
publicint getId( ){return id;}
publicvoid setId(int pk){ this.id = pk;}
@Column(name="CABIN_NAME")
public String getName( ){return name;}
publicvoid setName(String str){ this.name = str;}
@Column(name="CABIN_DECK_LEVEL")
publicint getDeckLevel( ){return deckLevel;}
publicvoid setDeckLevel(int level){ this.deckLevel = level;}
}
They look to me like the names of columns for the Database that will be taking
care of the persistence for this bean. Is that right?
If so, is it safe to assume these declarations need to always be made right
the 'getter' method of that particular data element?
thanks again!

