Skip to content

Instantly share code, notes, and snippets.

@emmanuelbernard
Created April 26, 2011 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save emmanuelbernard/942450 to your computer and use it in GitHub Desktop.
Save emmanuelbernard/942450 to your computer and use it in GitHub Desktop.
HibernateMetadata.java
MetadataSources sources = new MetadataSources(...)
...
.addAnnotatedClasses( Item.class );
.buildMetadata();
MetadataSources sources = new MetadataSources(...)
...
.addAnnotatedClasses( Item.class );
.usingContext()
.setNamingStrategy( new MyNamingStrategy() )
.buildMetadata();
@sebersole
Copy link

hmm, apparently the markdown stuff does not work out very well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment