facebook

What about this horrible JPA-validation?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #332597 Reply

    danielkohl
    Participant

    Hi all,

    what’s wrong with the JPA-validation?
    Correct working statements are declared as error…after fixing them to satisfy the validator they does not work anymore…

    Example::

    WORKING version but declared as ERROR (malformed ending, blocked not defined, sendTimestamp not defined, right parenthesis is missing from sub-expression):

    
    @NamedQuery(name = "getUnsentEmails", query = "SELECT e FROM Email e WHERE ((sendTimestamp IS NULL) AND (blocked = false))"),
    

    NOT WORKING version after correcting the statement (no errors or warnings by JPA validator)

    
    @NamedQuery(name = "getUnsentEmails", query = "SELECT e FROM Email e WHERE ((e.sendTimestamp IS NULL) AND NOT e.blocked)")
    

    My first solution was to simply deactivate the JPA-validator, but after setting all validators to WARNING i still get errors…..
    Any ideas?

    Greetings

    Daniel

    #332598 Reply

    danielkohl,

    Sorry that you are seeing this issue.

    1) Can you please share the Installation Details from MyEclipse > Installation Summary > Installation Details ?
    2) Can you please attach the sample project which shows this issue to help us investigate further ?

    #332599 Reply

    danielkohl
    Participant

    I’ve multiple installations (Win/Linux) and all of them are standard installations without special “non-myeclipse” plugins.

      *** Date:
      Freitag, 23. November 2012 13:34 Uhr MEZ

      *** System properties:
      OS=Linux
      OS version=2.6.34.10-0
      OS arch=amd64
      Profile arch=x86_64
      Window system=gtk
      Java version=1.6.0_13
      Workspace=file:/home/dkohl/sde/workspace/
      VM Args=-Xmx512m
      -XX:MaxPermSize=256m
      -XX:ReservedCodeCacheSize=64m
      -Dosgi.nls.warnings=ignore
      -jar
      /home/dkohl/sde/myeclipse/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

      *** Subscription information
      Product Id: E3MP (MyEclipse Professional Subscription)
      License version: 3.0
      Full Maintenance Included
      Subscription expiration date (YYYYMMDD): 20130114
      Number of users: 1

      *** Eclipse details:
      MyEclipse Enterprise Workbench

      Version: 10.7
      Build id: 10.7-20121026

      Blueprint: MyEclipse 10

      com.genuitec.myeclipse.database – 10.7.0.me201211011550
      com.genuitec.myeclipse.desktop – 10.7.0.me201211011550
      com.genuitec.myeclipse.editor – 10.7.0.me201211011550
      com.genuitec.myeclipse.enterprise.workbench – 10.7.0.me201211011550
      com.genuitec.myeclipse.geronimo – 10.7.0.me201211011550
      com.genuitec.myeclipse.glassfish – 10.7.0.me201211011550
      com.genuitec.myeclipse.icefaces.feature – 10.7.0.me201211011550
      com.genuitec.myeclipse.imageeditor – 10.7.0.me201211011550
      com.genuitec.myeclipse.jboss – 10.7.0.me201211011550
      com.genuitec.myeclipse.jetty – 10.7.0.me201211011550
      com.genuitec.myeclipse.jonas – 10.7.0.me201211011550
      com.genuitec.myeclipse.jrun – 10.7.0.me201211011550
      com.genuitec.myeclipse.jsf – 10.7.0.me201211011550
      com.genuitec.myeclipse.matisse – 10.7.0.me201211011550
      com.genuitec.myeclipse.maven – 10.7.0.me201211011550
      com.genuitec.myeclipse.oracle – 10.7.0.me201211011550
      com.genuitec.myeclipse.orion – 10.7.0.me201211011550
      com.genuitec.myeclipse.persistence – 10.7.0.me201211011550
      com.genuitec.myeclipse.pulse – 10.7.0.me201211011550
      com.genuitec.myeclipse.reports – 10.7.0.me201211011550
      com.genuitec.myeclipse.resin – 10.7.0.me201211011550
      com.genuitec.myeclipse.struts – 10.7.0.me201211011550
      com.genuitec.myeclipse.sun – 10.7.0.me201211011550
      com.genuitec.myeclipse.tomcat – 10.7.0.me201211011550
      com.genuitec.myeclipse.uml2 – 10.7.0.me201211011550
      com.genuitec.myeclipse.visualvm – 10.7.0.me201211011550
      com.genuitec.myeclipse.visualvm.server – 10.7.0.me201211011550
      com.genuitec.myeclipse.weblogic – 10.7.0.me201211011550
      com.genuitec.myeclipse.websphere – 10.7.0.me201211011550
      com.genuitec.myeclipse.ws – 10.7.0.me201211011550
      org.eclipse.birt – 2.6.1.me201211011550
      org.eclipse.datatools.connectivity.feature – 1.9.0.me201211011550
      org.eclipse.datatools.enablement.feature – 1.9.0.me201211011550
      org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
      org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201211011550
      org.eclipse.emf – 2.7.0.v20110606-0949
      org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
      org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
      org.eclipse.jpt.jpa.feature – 3.0.0.me201211011550
      org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201211011550
      org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201211011550
      org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201211011550
      org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201211011550
      org.eclipse.jst.server_adapters.feature – 3.2.100.me201211011550
      org.eclipse.jst.server_ui.feature – 3.3.0.me201211011550
      org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201211011550
      org.eclipse.m2e.feature – 1.0.0.me201211011550
      org.eclipse.sapphire.platform – 0.3.0.201106221325
      org.eclipse.wst.common.fproj – 3.3.0.me201211011550
      org.eclipse.wst.server_adapters.feature – 3.2.100.me201211011550
      org.eclipse.xsd – 2.7.0.v20110606-0949
      org.springframework.ide.eclipse.feature – 2.9.1.me201211011550
      org.zeroturnaround.myeclipse.feature – 5.1.0.SR1-201211021114

      AnyEditTools – 2.4.3.201211022220
      edu.umd.cs.findbugs.plugin.eclipse – 2.0.2.20121103
      fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
      net.sf.eclipsecs – 5.6.0.201209221626
      org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
      org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
      org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
      org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
      org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
      org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
      org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
      org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
      org.eclipse.jsf.feature – 3.3.0.me201211011550
      org.eclipse.ocl – 3.1.0.v20110606-1427
      org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
      org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
      org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
      org.zeroturnaround.eclipse.debug.feature – 5.1.0.SR1-201211021114
      org.zeroturnaround.eclipse.embedder.feature – 5.1.0.SR1-201211021114
      org.zeroturnaround.eclipse.feature – 5.1.0.SR1-201211021114
      org.zeroturnaround.eclipse.wtp.feature – 5.1.0.SR1-201211021114

      Eclipse startup command=-os
      linux
      -ws
      gtk
      -arch
      x86_64
      -showsplash
      -launcher
      /home/dkohl/sde/myeclipse/MyEclipse 10/myeclipse
      -name
      Myeclipse
      –launcher.library
      /home/dkohl/sde/myeclipse/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
      -startup
      /home/dkohl/sde/myeclipse/MyEclipse 10//../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
      –launcher.overrideVmargs
      -exitdata
      710008
      -install
      /home/dkohl/sde/myeclipse/MyEclipse 10
      -configuration
      /home/dkohl/sde/myeclipse/MyEclipse 10/configuration
      -vm
      /home/dkohl/sde/myeclipse/Common/binary/com.sun.java.jdk.linux.x86_64_1.6.0.013/bin/java

    Sample project attached

    Attachments:
    You must be logged in to view attached files.
    #332601 Reply

    danielkohl
    Participant

    I forgot to mention that this issue does not appear only on my 10.7. installation.
    I see this curios validations since a switched from JPA 1 to JPA 2….i think this was under 10.5.

    #332672 Reply

    danielkohl,

    Thank you for the details and the project.
    I could replicate the validation issue at my end. I have filed a PR for the dev team to work on it.

    Sorry for inconvenience caused.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: What about this horrible JPA-validation?

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