Looks like I’ll find something here: Compiling 1 source file to /Users/markw/dev/nbprjcts/DBManager/CustomerViewer/build/classes warning: [options] bootstrap class path not set in conjunction with -source 1.7 warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7' warning: No processor claimed any of these annotations: javax.annotation.Generated /Users/markw/dev/nbprjcts/DBManager/CustomerViewer/src/org/shop/viewer/CustomerViewerTopComponent.java:52: warning: [unchecked] unchecked conversion List<Customer> resultList = query.getResultList(); required: List<Customer> found: List
> On Nov 7, 2024, at 1:39 PM, Mark Wade <ma...@islandblockworks.com> wrote: > > Some years ago I wrote an inventory application using the NetBeans platform > modular framework. In the ensuing years it’s gone by the wayside. I haven’t > programmed in Java for years now. I find it’s not like riding a bicycle. I > have a renewed interest. > > My application is in working order; Postgresql back-end, Swing front-end, its > all humming away but I’d like to do a bit more with it so to re-familiarize > myself with this environment I thought I would walk through the CRUD Tutorial > at: https://netbeans.apache.org/tutorial/main/tutorials/nbm-crud/ > <https://netbeans.apache.org/tutorial/main/tutorials/nbm-crud/> > > It’s old, written for Java 1.7 I think and for Netbeans I’m using: > > Product Version: Apache NetBeans IDE 9.0 (Build > incubator-netbeans-release-334-on-20180708) > Java: 9.0.4; OpenJDK 64-Bit Server VM 9.0.4+11 > Runtime: OpenJDK Runtime Environment 9.0.4+11 > System: Mac OS X version 10.16 running on x86_64; UTF-8; en_US (nb) > > EclipseLink (JPA 2.1) > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.core-2.5.2.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.core-2.5.2.jar!/> > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.asm-2.5.2.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.asm-2.5.2.jar!/> > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.antlr-2.5.2.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.antlr-2.5.2.jar!/> > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.jpa-2.5.2.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.jpa-2.5.2.jar!/> > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.jpa.jpql-2.5.2.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/org.eclipse.persistence.jpa.jpql-2.5.2.jar!/> > jar:nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/javax.persistence-2.1.0.jar!/ > > <nbinst://org.netbeans.modules.j2ee.eclipselink/modules/ext/eclipselink/javax.persistence-2.1.0.jar!/> > … > > I’ve been through this every which way I can think of and it’s really bugging > me I can’t get it going. > > I was hoping someone might be able to help me with the error I get when > running the resulting DBManager application: > > [EL Info]: connection: 2024-11-07 > 12:57:10.479--ServerSession(647762109)--file:/.../DBManager/build/cluster/modules/ext/CustomerLibrary.jar_CustomerLibraryPU > login successful > [EL Warning]: metamodel: 2024-11-07 12:57:10.497--The collection of metamodel > types is empty. Model classes may not have been found during entity search > for Java SE and some Java EE container managed persistence units. Please > verify that your entity classes are referenced in persistence.xml using > either <class> elements or a global > <exclude-unlisted-classes>false</exclude-unlisted-classes> element > INFO [org.netbeans.core.windows.persistence]: > [PersistenceManager.getTopComponentForID] Problem when deserializing > TopComponent for tcID:'CustomerViewerTopComponent'. Reason: null > Content: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" > "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd > <http://www.netbeans.org/dtds/sessionsettings-1_0.dtd>"> > <settings version="1.0"> > <instance class="org.shop.viewer.CustomerViewerTopComponent"/> > </settings> > Class: class org.shop.viewer.CustomerViewerTopComponent > Source: > MultiFileObject@34b3e798[Windows2Local/Components/CustomerViewerTopComponent.settings] > Content: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" > "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd > <http://www.netbeans.org/dtds/sessionsettings-1_0.dtd>"> > <settings version="1.0"> > <instance class="org.shop.viewer.CustomerViewerTopComponent"/> > </settings> > Class: class org.shop.viewer.CustomerViewerTopComponent > Source: > MultiFileObject@34b3e798[Windows2Local/Components/CustomerViewerTopComponent.settings] > Caused: java.lang.IllegalArgumentException: NamedQuery of name: > Customer.findAll not found. > > ...
smime.p7s
Description: S/MIME cryptographic signature