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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:57:13+00:00 2026-05-26T12:57:13+00:00

when I fetch an object using the requestfactory it always fetches all dependencies even

  • 0

when I fetch an object using the requestfactory it always fetches all dependencies even without using with().
I created a testcase:

public class TestObjectC {

    String c;
    TestObjectB b;

    public TestObjectC() {
    }
    public String getC() {
        return c;
    }
    public void setC(String c) {
        this.c = c;
    }
    public TestObjectB getB() {
        return b;
    }
    public void setB(TestObjectB b) {
        this.b = b;
    }
}

and:

public class TestObjectB {

    String b;
    TestObjectA a;

    public TestObjectB() {
    }
    public String getB() {
        return b;
    }
    public void setB(String b) {
        this.b = b;
    }
    public TestObjectA getA() {
        return a;
    }
    public void setA(TestObjectA a) {
        this.a = a;
    }
}

My Proxies are:

@ProxyForName(value = "com.myproject.testing.TestObjectC")
public interface TestObjectCProxy extends ValueProxy {

    public String getC();
    public void setC(String c);
    public TestObjectBProxy getB();
    public void setB(TestObjectBProxy b);

}

and:

@ProxyForName(value = "com.myproject.testing.TestObjectB")
public interface TestObjectBProxy extends ValueProxy {

    public String getB();
    public void setB(String b);
    public TestObjectAProxy getEins();
    public void setEins(TestObjectAProxy eins);

}

when I fire my Request :
requestFactory.myRequest().getTest()
.fire(new Receiver() {

                @Override
                public void onSuccess(TestObjectCProxy response) {
                    System.out.println(response.getB());
                    System.out.println(response.getB().getB());
                }
            });

everything works fine. Shouldn’t I get a Nullpointer-Exception?
I need to use ProxyFor(…) because the Proxies are in a different project than my dataobjects. And I use Dependency-Injection on server-side to load the service classes.
Can any of this be a problem?

Regards,
arne

  • 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-05-26T12:57:14+00:00Added an answer on May 26, 2026 at 12:57 pm

    Even though this didn’t catch so many peoples interest maybe the answer will help someone. What I didn’t know is that ValueProxys are always fetched with all their attributes. Only EntityProxys can be used if lazy fetching is necessary.

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

Sidebar

Related Questions

i want to fetch information from the database using objects. i really like this
I'm trying to fetch Wikipedia pages using LWP::Simple , but they're not coming back.
I'm currently working with the versant object database (using jvi), and have a case
All the examples I see using mysqli_fetch_object use mysql_query() , I cannot get it
I have the following @OneToOne relation: @Entity @Table(name=USER) public class User implements Serializable{ private
I tried created an XML file using below code. $xml = new SimpleXMLElement('<xml />');
So I have a service clint class that has a method called fetch. I
I'm successfully generating a JSON object using Django Serialization. I do so with this
I'm using a custom ViewModel in the following general manner: public ActionResult Edit(int id)
Using the $object in Actions. $object: Many actions act on one of Drupal’s built-in

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.