Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:44:45+00:00 2026-06-07T16:44:45+00:00

I am new to Java EE an I am trying to add a new

  • 0

I am new to Java EE an I am trying to add a new database table and program to an existing Java EE application that uses hibernate with persistence and spring framework. I am getting an error that says symbol not found
I’ve created 4 classes:-

public interface ncs_userInterface extends Persistable {
    public abstract int getVersion();

    public abstract String getPERSONIDNO();

    public abstract String getFULLNAME();

    public abstract long getID();

    public abstract Date getCreationDate();

    public abstract int getROLEID();

    public abstract int getSCHEMEID();

    public abstract String getSCHEMETITLE();

    public abstract String getROLENAME();

    public abstract void setVersion(int version);

    public abstract void setPERSONIDNO(String PERSONIDNO);

    public abstract void setFULLNAME(String FULLNAME);

    public abstract void setID(long ID);

    public abstract void setCreationdate(Date creationdate);

    public abstract void setROLEID(int ROLEID);

    public abstract void setSCHEMEID(int SCHEMEID);

    public abstract void setSCHEMETITLE(String SCHEMETITLE);

    public abstract void setROLENAME(String ROLENAME);

}


public class ncs_user extends PersistentObject implements ncs_userInterface{
    private long ID;
    private int version;
    private Date creationdate;
    private String PERSONIDNO;
    private String FULLNAME;
    private int ROLEID;
    private String ROLENAME;
    private int SCHEMEID;
    private String SCHEMETITLE;

    public ncs_user() {

    }

    public ncs_user(String PERSONIDNO, int version){
        this.PERSONIDNO=PERSONIDNO;
        this.version=version;
    }
// All the getters and setters follow this but haven't listed them in this code
}

public abstract class ncs_userManager extends BasicManager{


    protected static ncs_userManager INSTANCE;


    public static final synchronized ncs_userManager getInstance() {
        return INSTANCE;
    }


    public abstract void createAndPersistncs_user(ncs_userInterface newNcs_user);

    public abstract List findNcs_usersByIdentity(String PERSONIDNO);

    public abstract void updateNcs_user(ncs_userInterface changedNcs_user);

    public abstract void deleteNcs_user(ncs_userInterface deletableNcs_user);   
}

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.hibernate.Hibernate;
import org.hibernate.type.Type;
import org.olat.admin.user.delete.service.UserDeletionManager;
import org.olat.core.commons.persistence.DB;
import org.olat.core.commons.persistence.DBFactory;
import org.olat.core.gui.UserRequest;
import org.olat.core.gui.control.WindowControl;
import org.olat.core.id.Identity;
import org.olat.core.logging.OLog;
import org.olat.core.logging.Tracing;
import org.olat.core.util.coordinate.CoordinatorManager;
import org.olat.user.UserDataDeletable;

public class ncs_userManagerImpl extends ncs_userManager implements UserDataDeletable{

    private static OLog log = Tracing.createLoggerFor(ncs_userManagerImpl.class);

    public ncs_userManagerImpl(final UserDeletionManager userDeletionManager) {
        userDeletionManager.registerDeletableUserData(this);
        INSTANCE = this;
    }


    @Override
    public void createAndPersistncs_user(final ncs_userInterface newNcs_user) {
        final DB db = DBFactory.getInstance();
        db.saveObject(newNcs_user);
        if (log.isDebug()) {
            log.debug("NCS_USER has been created: " + newNcs_user.getPERSONIDNO());
        }
    }


    @Override
    public List<ncs_userInterface> findNcs_usersByIdentity(final String PERSONIDNO) {
        final String query = "from org.olat.ncs_user.ncs_user as b where b.PERSONIDNO = ?";
        return DBFactory.getInstance().find(query, PERSONIDNO, Hibernate.LONG);
    }



    @Override
    public void updateNcs_user(final ncs_userInterface changedNcs_user) {
        DBFactory.getInstance().updateObject(changedNcs_user);
    }


    @Override
    public void deleteNcs_user(final ncs_userInterface deletableNcs_user) {
        DBFactory.getInstance().deleteObject(deletableNcs_user);
    }

    @Override
    public void deleteUserData(final Identity identity, final String aString) {

    }

}

I have also created a hibernate mapping file and a spring context file for the code above. I am trying to create a singleton using the following code:-

final ncs_userManager n;
n = new ncs_userManager.getInstance();
final ncs_userInterface newncs_user = new ncs_user(login, 0);
List l = n.findNcs_usersByIdentity(PERSONIDNO);

I am getting error in the line n = new ncs_userManager.getInstance():-

org/olat/admin/user/imp/ImportStep00.java:[205,75] error: cannot find symbol

I was wondering if someone could help me figure out what mistake I am making.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:44:47+00:00Added an answer on June 7, 2026 at 4:44 pm

    Remove the ‘new’ key word as its abstract class and you are calling static method of it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to java and am trying to write a simple program that basicly
I was trying to add a User in my database using Java with Spring
I'm new to java and trying to add sound to my application. The problem
I am new to Java and trying to do a simple program to help
Hey I'm new to java servlets and I am trying to write one that
I have a database and a Java Program. I am trying to write a
I am new to java and and trying to test/improve my program. it works
i have a program that communicates with an existing database. There is a composite
Just a warning: I'm completely new to Java and am trying to teach myself
I'm new to java and I'm trying to swap out the text on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.