English 中文(简体)
Eclipse, JPA 2.0 metamodel generator and Spring Roo workingjoint
原标题:Eclipse, JPA 2.0 metamodel generator and Spring Roo working together

http://docs.jboss.org/hibernate/jpamodelgen/1.0/app/en-US/html_single/“rel=“nofollow”

我有一个春罗项目,利用Eclipse作为民主选举学会。 我得以将Eclipse项目和maven pom.xml混为一谈,以便在建筑/装配过程中使用JPA 2.0代代代发电机。 问题在于,发电机为Roo实体(即有<代码>@的域级)制造了异构体。 Roo* Note。

我创建了一个“手提”的实体,并确认发电机配置得当。 我怀疑,Roo实体的发电机之所以失败,是因为不知道AspectJ IDT班。 是否有办法使Roo实体的发电机发挥作用?

在我忘记之前,奥赫就是我的组合:

  • STS 2.5.1
  • Spring Roo 1.1.0
  • Project configuration:
    • Annotation processing enabled
    • Factory path contains hibernate-jpa-2.0-api-1.0.0.Final.jar and hibernate-jpamodelgen-1.1.0.Final.jar
  • pom.xml
    • Included http://maven-annotation-plugin.googlecode.com/svn/trunk/mavenrepo as a plugin repository
    • Added org.hibernate:hibernate-jpamodelgen:1.1.0.Final as dependency
    • Added and configured org.codehaus.mojo:build-helper-maven-plugin:1.5 to include src/generated/java as a maven source folder
    • Added and configured org.bsc.maven:maven-processor-plugin to run org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor and place the generated code at src/generated/java

必要时,我可以提供进一步详情。 提前感谢。

问题回答

你或许应当研究模型2roo项目。

http://code.google.com/p/model2roo/





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签