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 8486041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:49:29+00:00 2026-06-10T20:49:29+00:00

I have set up 3 classes. ClassA has FK of ClassB and ClassC respectively.

  • 0

I have set up 3 classes. ClassA has FK of ClassB and ClassC respectively. I have put up the following lines in my ClassA

    @Entity
    @Table(name="ClassA")
    public class ClassA{
    //rest of the code

        @OneToOne(fetch=FetchType.LAZY, targetEntity=ClassB.class)
        @JoinColumn(name="ClassB_ColA", columnDefinition="ClassB_ColA", updatable=false, insertable=false)
        private ClassB classB;

        @OneToOne(fetch=FetchType.LAZY, targetEntity=ClassC.class)
        @JoinColumn(name="ClassC_ColA", columnDefinition="ClassC_ColA", updatable=false, insertable=false)
        private ClassC classC;
}

and i am getting following exception

Exception [EclipseLink-60] (Eclipse Persistence Services - 2.1.1.v20100817-r8050): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The method [_persistence_set_classB_vh] or [_persistence_get_classB_vh] is not defined in the object [project.persistence.entities.ClassA].
Internal Exception: java.lang.NoSuchMethodException: project.persistence.entities.ClassA._persistence_get_classB_vh()
Mapping: org.eclipse.persistence.mappings.OneToOneMapping[classB]
Descriptor: RelationalDescriptor(project.persistence.entities.ClassA --> [DatabaseTable(ClassA)])

I did a little bit search and i could find some old threads saying about waving static loading or something. Can someone suggest a solution ?

P.S:
I am using weblogic 10 and eclipselink2

  • 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-10T20:49:31+00:00Added an answer on June 10, 2026 at 8:49 pm

    The problem was related to static wavingo f the objects. So what i did that i changed the loading mechanism.

    From ClassB, i didn’t load anything for ClassA and for ClassA, I kept the lazy loading .. and it worked fine.

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

Sidebar

Related Questions

I have 2 classes, ClassA and ClassB ClassA has one BOOL variable set to
I have two classes class A { public string something { get; set; }
I have two classes: public class MultilingualString { public int Id { get; set;
I have a little C# problem. I have two classes ClassA and ClassB defined
Suppose you have 2 classes like so: public class ClassA { public int X
I have the following classes [Serializable()] public class ColumnList { public ColumnList() { ListOfColumns
I have a set of classes where my base has a constructor that takes
I have a Class like this: class ClassA { public long classAID {get; set;}
I have some legacy code with linq2sql classes. DataContext class has following definition for
I have two classes set up as follows: class Point { protected: double coords[3];

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.