-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Separate Maven Hibernate Annotations Artifact
PostPosted: Sun Oct 28, 2012 4:17 pm 
Newbie

Joined: Sun Oct 28, 2012 4:10 pm
Posts: 1
Hi,

I have a separate, shared Maven module for shared classes that includes my model classes. I would like to be able to annotate these classes, but avoid including the full Hibernate API.

Ideally, the annotations would be accessible in a separate artifact. There appears to be something along the lines of what I am looking for org.hibernate:hibernate-annotations [1]. Unfortunately, it seems like this artifact has been deprecated (or unmaintained) and has not been updated since 3.5.6. Does anybody know the story behind this artifact? Should I assume it is no longer usable?

Has anyone solved a similar problem? I was considering using the Maven optional dependency flag but I am unsure about how this would work with annotations when Hibernate is not included (i.e. what if a class is annotated with annotations that are not on the classpath?)

[1] http://mvnrepository.com/artifact/org.hibernate/hibernate-annotations


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.