facebook

Auto generated domain layer has error

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #308453 Reply

    support-joy
    Member

    Moved from https://www.genuitec.com/forums/topic/entity-does-not-have-an-id/

    Leela states –

    Hi,
    I am having the same issue with MyEclipse spring 8.2. Auto generated domain layer has error e@Entity does not have an ID. (scaffolding spring MVC CRUD from database)
    Leela

    #308459 Reply

    Heflin Hogan
    Member

    Can we get a description of what the steps were that produced the error, what the table that produced the code looks like, and any error log information?

    -Heflin

    #312184 Reply

    bchrist2
    Member

    am having the same issue with MyEclipse 8.6? Has there been a fix for this ongoing issue?

    #312209 Reply

    bchrist2
    Member

    The problem seems to pertain to this bug listed in another thread which I am wondering what the status is:

    “the JPA metadata validator hasn’t been expanded to do the class resolution across project boundries like that. This has not been changed in 7.0 but it’s been filed as a bug for us to look into.”

    We use MyEclipse for reverse engineering JPA entity beans. Each entity bean has a super class that contains the id and version field. The super class is in a different (utility) project.

    At runtime everthing works fine, but MyEclipse ide shows the following error message:
    “Entity does not have an id”.

    We updated the metadata using a refresh. This helped for a while but now the message is back and will not disappear, even after a metadata refresh.

    It seems it has something to do with the mappend superclass being part of another project.

    It seems that there was an

    Here are my installation details:
    *** Date:
    Friday, October 22, 2010 9:57:12 o’clock AM EDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.6
    Build id: 8.6-20100723

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.6
    Build id: 8.6-20100723

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse-8.6\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse-8.6\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Program Files/Genuitec/MyEclipse-8.6
    -configuration
    configuration
    -vm
    C:/Program Files/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    Here is

    #312310 Reply

    bchrist2,
    Can you clarify if the Driver and Catalog Schema are set correctly from Project > Properties > MyEclipse > Java Persistence?
    Also, can you list out the steps in detail, right from the project creation, to replicate your issue?

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Auto generated domain layer has error

You must be logged in to post in the forum log in