[opennms-devel] Extending OpenNMS model without change opennms-model jar

Alejandro Galue <[email protected]>
Newsgroups gmane.network.opennms.bugs
Message-ID <455545FD-E9C1-4D06-9949-28C99CBC42C3__43581.095923628$1215198265$gmane$org@sync.com.ve>
Hello,

This question is more related to spring than opennms but I hope you  
can help me with that.

I want to know how can I add additional entities to hibernate  
sessionFactory bean without modifying applicationContext-dao.xml and  
rebuild opennms-dao-x.x.x.jar

I found some people that suggest a classpath automatic loading and  
avoid put explicit classes list on annotatedClasses property on  
AnnotationSessionFactoryBean; but no one point me to a working example.

Spring people point to use JPA and persistence.xml, because it uses  
automatic class adding with @Entity annotations but, neither found how  
can use this with  AnnotationSessionFactoryBean.

Any suggestions ?

Alejandro.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.