swt emf hibernate databinding [message #660223] |
Thu, 17 March 2011 09:05  |
Eclipse User |
|
|
|
Hello all. Can anybody tell me, we a i can read about emf datamodel databinding to swt components(TableViewer). My datamodel works through hibernate with mysql database.
private static HbDataStore dataStore;
static {
try {
String dataStoreName = "WtpDataStore";
dataStore = HbHelper.INSTANCE
.createRegisterDataStore(dataStoreName);
dataStore.setEPackages(new EPackage[] { WtpdbPackage.eINSTANCE });
dataStore.initialize();
sessionFactory = dataStore.getSessionFactory();
} catch (Throwable ex) {
System.err.println("Initial SessionFactory creation failed" + ex);
throw new ExceptionInInitializerError(ex);
}
}
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04335 seconds