Oliver Gierke
Erfahrenes Mitglied
Dann solltest du in ejb3-persistence.jar eine Annotation javax.persistenceTable finden...
Gruß
Ollie
Gruß
Ollie
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
@ManyToOne(optional = false)
@JoinColumn(name = "class_id")
public ErpClass getErpClass()
{
return erpClass;
}
Transaction transaction = session.beginTransaction();
try
{
ErpClass erpClass = new ErpClass();
erpClass.setName("FD");
transaction.commit();
}
catch(Exception e){transaction.rollback();System.out.println(e);}
finally{session.close();}
transaction = session.beginTransaction();
try
{
Article article = new Article();
article.setErpClass(.......) // wie soll ich das hier machen?
transaction.commit();
}
catch(Exception e){transaction.rollback();System.out.println(e);}
finally{session.close();}