domenica 27 gennaio 2008

come aggiungere proprietà a @Id

@Id
@Column(name="PARTID", primaryKey=true, nullable=false, updatable=false, insertable=false)

tratto da:
EJB 3 Annotations for mapping composite primary keys that are part of foreign key

http://www.jroller.com/raghukodali/entry/ejb_3_annotations_for_mapping

Nessun commento: