[nbj2ee] Re: jpa controller classes from entity classes

  • From: " " < >
  • To:
  • Subject: [nbj2ee] Re: jpa controller classes from entity classes
  • Date: Fri, 28 Sep 2012 00:18:21 +0400

It was changed a few releases ago. Current behavior is to generate controller with entity manager/factory as external argument
Sergey

27.09.2012 21:57, sitongia пишет:
Bump +1

In a project I built before using this approach, the JpaController got a 
no-args constructor that instantiated the EntityManagerFactory, as in

Code:

        public FileJpaController() {
                emf = Persistence.createEntityManagerFactory("ImageDBPU");
        }



Today, I get

Code:

     public Tbl1996JpaController(EntityManagerFactory emf) {
         this.emf = emf;
     }



which is a 1-arg constructor, and differs from the OP's 2-arg constructor!

What is determining how this code is code-generated from this wizard?

What happened to the no-args constructor?

Thanks,
==Leonard







[nbj2ee] jpa controller classes from entity classes

sitongia 09/27/2012

[nbj2ee] Re: jpa controller classes from entity classes

Leonard Sitongia 09/27/2012

[nbj2ee] Re: jpa controller classes from entity classes

09/27/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close