Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » HBM file generation by teneo
HBM file generation by teneo [message #612748] Wed, 05 December 2007 14:02
justin Mising name is currently offline justin Mising nameFriend
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.
Previous Topic:Registration timeout after 5000 milliseconds
Next Topic:Emfatic - The Hows, Wheres, Whats of Getting Started?
Goto Forum:
  


Current Time: Sat Jul 27 01:17:14 GMT 2024

Powered by FUDForum. Page generated in 0.02443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top