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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:50:34+00:00 2026-06-17T21:50:34+00:00

I was under the impression that Force.com eliminated the necessity of object-relational mapping. I

  • 0

I was under the impression that Force.com eliminated the necessity of object-relational mapping.

I can’t create a an object that extends a custom object like this:

class Program extends Program__C() { public Program() { super(); } }

So to “add a method to the Program__c() object” I have been doing this:

class Program { 
    Program__c program; 
    public Program() { 
        program = new Program__c(); 
    }
}

But then this leads to the same ERM problems that I thought Force was supposed to eliminate by virtue of the intercourse between APEX and the DB.

Is there any way to extend custom objects, or at least add methods to custom objects, in APEX? Am I incorrect in that developers don’t have to do ORM?

Thank you,

-Matthew Mosien

  • 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-17T21:50:35+00:00Added an answer on June 17, 2026 at 9:50 pm

    As far as I know (and I’m pretty certain), there is no way to extend custom objects in the manner you wish.

    What you’re doing seems to be a reasonable solution to the problem.

    You don’t have to do ORM in the sense that any objects and fields you have in your DB are already accessible in your code with no extra effort. However, you can’t do much (if anything) to affect your schema programmatically in your code. You’re kinda stuck with it.

    Hope this helps!

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

Sidebar

Related Questions

I was under the impression that when you called Flush() in a StreamWriter object
I was under impression that every object in a Scala List must have the
I was under the impression that a tag would act like a commit in
I was under the impression that these days javascript can be used as a
I was under the impression that webm played on Android, but I can't get
I was under the impression that adding a subview to a view goes like
I was under the impression that argument-less functions can be called with empty parentheses
Noob question: I'm currently under the impression that when you want to create an
I was under the impression that when we send mail to any domain (i.e.
I'm under the impression that a control in a nested UpdatePanel will cause the

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.