java - Using Hibernate with Dynamic Eclipse Plug-ins -


I have the name of the classes that are exactly the same as the different plug-ins I use for my application. The problem I am, and I like being in hibernation, is to be able to properly configure them, it seems that being in hibernation produces a class' package name dynamically when trying to find a class Time is mapping this one The plug-in works with this scheme, but it does not work in many plug-ins. It seems that hibernate is confused when dealing with hibernate configuration files in plug-ins in many ways.

Is this because each plug-in has its own class-loader? What is the best way to work with existing plug-ins and hibernate?

The problem is that each plugin has its own classmaker and in hibernation reflection uses it.

I have a great article at home about this problem, but it is in a German, I will try to explain what you have to do.

To share the datastructure on many plugins, you need to put it in the plug-in and give it to buddy-policy . Say that you have a main-application-plugin that is starting hibernate at startup, this plugin needs to "see" sections from DataCrector-plugin. To do this, The main-plugin sets its large-policy "registered" and the datastructure-plugin registers itself as a "friend" . Unfortunately you have to explicitly do this in the manifest file, at least 3.3 in There was no way to do this in the editor.

Once this friend policy works, then hibernate is too.

  1. The main application (toolseye.rcp) depends on the plugin being hibernate (

    De.eye4eye.hibernate) and datastructure-plugin (toolseye

  2. The Hibernate-Plugin specifies its friendship policy as "registered"
  3. The dataset-plugin itself registers the hibernate-plugin
  4. Hibernate-Plugin D.EE4 NE HBNnet

      Eclipse-BADC: Registered  
    < P> data Structure-plugin toolsheets.datastructures

      Eclipse-Register Buddy: de.eye4eye.hibernate  

    Add them to Manifest. Direct line in MF

    < P> Both plugins need to be re-exported to their package so that the main application or what is the level between you can help them, hope is that it can help.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -