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

  • Home
  • SEARCH
  • 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 5842417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:00:55+00:00 2026-05-22T12:00:55+00:00

My ORM is generating objects reflecting the database table structure. This objects are extensible,

  • 0

My ORM is generating objects reflecting the database table structure. This objects are extensible, so I’m able to add new properties and methods. This objects do not contains any persistence logic,so I guess they are persistant ignorant.

Should I use this object as my domain objects or should I create new objects for main domains model ?

As a pro for creating new object I would consider that when a database table changes it won’t break the application.

As a con for creating new object I would consider the additional mapping and more complexity in the app.

  • 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-22T12:00:55+00:00Added an answer on May 22, 2026 at 12:00 pm

    My answer is, it depends. If you have a lot of complex logic assosiated with many entities you should create another layer of domain, but for the objects that got no logic and just serves you as a db port, don’t bother to create a separate object cause its meaningless.

    To sum up, if a db change will cause domain change, don’t separate if it won’t, separate.

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

Sidebar

Related Questions

This is a question about Sql generation, not sql creating sql nor ORM. Is
For my brand new ORM ( chibi-ORM ) I face a design decision. I'm
I am having some issues when running sp_executesql on a database table. I am
Which ORM is best to use with a new Rails 3 app against a
Typically the model for ORM's that I've used goes something like this: Program startup:
Our team is using the Entity Framework 4.1 ORM. We're not using it in
Is there a way I can print the query the Django ORM is generating?
Both seems to be generating integer NOT NULL UNIQUE REFERENCES databaase columns. Edit: My
i googled the phrase lightweight ORM for j2ee and find this page http://java-source.net/open-source/persistence from
The ORM we are using (LLBL) does not easily support the NOEXPAND keyword on

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.