[ 
https://issues.apache.org/jira/browse/NETBEANS-6030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484604#comment-17484604
 ] 

Claudia Pastor Ramirez commented on NETBEANS-6030:
--------------------------------------------------

I have detected another problem with this issue. The IDE does not recognise the 
jakarta.persistence.NamedQuery objects correctly, so it does not validate the 
JPQL for them at all. If you have a couple of entity classes you can verify the 
named queries manually if the deployment fails, but if you have around twenty 
entity classes with a number between five to ten named queries in each, trying 
to find the missing coma in one of them is like trying to get the proverbial 
needle in a haystack. 

> Unable to add Jakarta Persistence Provider
> ------------------------------------------
>
>                 Key: NETBEANS-6030
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6030
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javaee - Persistence
>    Affects Versions: 12.4, 12.5, 12.6
>         Environment: Netbeans 12.4 both on Windows 10 and Ubuntu 20.04.
> Netbeans 12.5 on Ubuntu 20.04.
> API versions tested: Jakarta 2.2.3 and 3.0.0
> Persistence providers: Eclipselink-3.0.2 and Hibernate-5.5.3
>            Reporter: Claudia Pastor Ramirez
>            Priority: Major
>         Attachments: Captura de pantalla 2021-08-27 151310.png, Captura de 
> pantalla de 2021-10-08 14-36-56.png, Captura de pantalla de 2021-10-08 
> 14-43-10.png, ErrorMessage.png, image-2021-12-27-12-36-33-211.png
>
>
> Hello everyone,
> First of all, thank you for your work on the IDE and your support on this 
> concrete matter.
> The problem I currently have is that I am trying to add a new persistence 
> provider for the 3.0 Persistence API, but the IDE seems to be unable to 
> recognise the libraries as valid. I have tried both with Eclipselink and with 
> Hibernate. Attached is the image of one of the attempts with Eclipselink (I 
> have done several changing the included jars trying to find the problem). 
> !Captura de pantalla 2021-08-27 151310.png!
>  
> I am able to work with my projects despite of that, because I use Maven and 
> the libraries are included anyway, but the IDE keeps telling me that my 
> persistence.xml is wrong because it is declared as version 3.0 and giving me 
> annoying warning and error messages right and left.
> !ErrorMessage.png!
> I suspect that the problem is because the wizard does not find the 
> EntityManager under the Jakarta namespace, so it does not allow to carry on 
> (it fails with other Jakarta jars, with lower versions too), but I have not 
> way of verifying it.
> Thank you again for your help. Regards,
>  
> NOTE: There seems to be also problems because I am using a 5.0 servlet 
> version and it does not recognise it as you can see in the errors, but this 
> one affects less to my work, so I have not opened an issue for it. Should I?
>  
> {color:#ff0000}UPDATED today a 12.5 and still fails.{color}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to