Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Dali generates incomplete and corrupted JPA metamodel
icon5.gif  Dali generates incomplete and corrupted JPA metamodel [message #1384804] Mon, 02 June 2014 08:22 Go to next message
Sergej Logis is currently offline Sergej LogisFriend
Messages: 1
Registered: June 2014
Junior Member
I'm using Dali feature to generate JPA metamodel in my projects. Previosly it was generated perfectly, but after that something happened and now my metamodel classes are generated incomplete/wrong. Please note, that entity classes themselves didn't change a bit.
That's how it was generated just a few months ago:

@Generated(value="Dali", date="2014-03-03T15:27:31.931+0200")
@StaticMetamodel(AsmensZyma.class)
public class AsmensZyma_ {
    public static volatile SingularAttribute<AsmensZyma, Long> id;
    public static volatile SingularAttribute<AsmensZyma, Asmuo> asmuo;
    public static volatile SingularAttribute<AsmensZyma, AsmensZymaSource> registas;
    public static volatile SingularAttribute<AsmensZyma, Date> data;
    public static volatile SingularAttribute<AsmensZyma, String> roik;
    public static volatile SingularAttribute<AsmensZyma, String> pastaba;
}

And how it is being generated now:

@Generated(value="Dali", date="2014-05-30T11:48:56.816+0300")
@StaticMetamodel(AsmensZyma.class)
public class AsmensZyma_ {
   public static volatile SingularAttribute<AsmensZyma, Long> id;
   public static volatile SingularAttribute<AsmensZyma, Object> asmuo;
}

Note that there are plenty of missing fields, and fields types are not detected properly. This happens TO ALL my entity classes in ALL my projects... What I have tried:

  • Upgrading STS (currently using 3.5.1)
  • Cleaning/refreshing/updating projects
  • Re-configuring JPA metamodel generation in STS
  • Creating brand new clean workspace and importing only one project to it

Nothing helps so far...

Also, as suggested on StackOverflow, i have checked JPA Structure/Details views. And I have found out, that missing fields are treated as "unmapped". But they are all annotated with @Column! And @ManyToOne relation is picked properly, however, field generic type is missing anyway in generated metamodel...

Any suggestions or help is highly appretiated!
Re: Dali generates incomplete and corrupted JPA metamodel [message #1405346 is a reply to message #1384804] Thu, 07 August 2014 06:29 Go to previous message
Tobias Liefke is currently offline Tobias LiefkeFriend
Messages: 1
Registered: July 2009
Junior Member
We had a similar problem.

In our project we once had used another library for static metamodel generation, which still existed in the project properties under Java Compiler/Annotation Processing/Factory Path.
We had turned off annotation processing under Java Compiler/Annotation Processing, but the defined library distracted DALI, and it generated incomplete and incorrect metamodel classes.

Deleting all libraries under Java Compiler/Annotation Processing/Factory Path fixed that problem.
Previous Topic:eclipse not creating table from jpa entities
Next Topic:Mistaken JPA Validation Error (Luna)
Goto Forum:
  


Current Time: Fri Apr 26 10:23:25 GMT 2024

Powered by FUDForum. Page generated in 0.03361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top