Re: How to integrate a resource file into the final JAR

2024-06-23 Thread Stephen G. Parry
Are you using a Java with Maven project? Assuming so, the process for what you are asking is a two step one: 1) Ensure the files you wish to access are located under the src/main/resources folder as shown here:

Re: Creating entity classes from the database does not work

2024-01-20 Thread Stephen G. Parry
We have experienced this problem also. Which version of JPA are you targeting? On 20/01/2024 01:09, Greenberg, Gary wrote: I am still using NB 18, because installing new versions require a lot of paperwork here at Visa. Nevertheless, I am now facing a problem that I haven’t had with version

Re: Converting Java 8 to 17+, conflicts with modules

2023-11-11 Thread Stephen G. Parry
From my experience, minimize your direct Maven dependencies. Try to use services as much as possible. For example. eclipselink should be a runtime, not a compile time dependency and should be injected as service: module-info.java:     requires jakarta.persistence;     uses

JPA controller classes wizard not finding JPA 3.0 or 3.1 Entities

2023-10-30 Thread Stephen G. Parry
After a lot of swearing and adding of the correct libraries to Tools->Libraries, I was able to persuade NB19 to create JPA 3.1 Entity classes, based on the jakarta.persistence package space, from a database in an SE project, although it identifies the libraries as EclipseLink (JPA 3.0), not