HBM file generation by teneo [message #612748] |
Wed, 05 December 2007 14:02 |
justin Mising name Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hi ,
Iam using teneo 0.7.5 with EMF 2.2.
I have library ecore file.
Elver Doc says that we can generate hbm file by right-clicking ecore file.
I have teneo.hibernate and all the hibernate libraries in dependancy tab
of plugin.xml.
When i try generating hbm file from ecore file,i get blank hbm file.
The doc says to register datasource the foll way:
final String dataStoreName = "LibraryDataStore";
final HbDataStore dataStore =
HbHelper.INSTANCE.createRegisterDataStore(dataStoreName);
// To configure Hibernate, supply properties describing the JDBC driver,
// URL, username/password and SQL dialect.
// By default the properties are obtained from the file
// "hibernate.properties" at the classpath root.
// Configure the EPackages persisted by this DataStore.
dataStore.setEPackages(new EPackage[] {EcorePackage.eINSTANCE,
XMLTypePackage.eINSTANCE});
dataStore.initialize();
Should i run the above piece of code and then right-click to generate hbm
file.
Kindly let me know the sequence of steps for hbm file generation from
ecore at the earliest possible.
Thanks,
Justin.
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds