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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:09:54+00:00 2026-06-06T06:09:54+00:00

I was using Objectify 3 and spring before. Now i am trying to shift

  • 0

I was using Objectify 3 and spring before. Now i am trying to shift from Objectify3 to Objectify4. I read best practices of Objectify3 and used DAOBase in the below way.

public class DAO<T extends BaseEntity> extends DAOBase{
       static {
    ObjectifyService.register(MyEntity);
       }
       //all the common methods like save, getById, delete, upate...
}

@Repository
public class DAOMyEntity extends DAO<MyEntity>{
    //specific methods to MyEntity like getByMyEntityEmail....
}

And i can autowire DAOMyEntity in all my controllers.

As Objectify4 doesn’t have DAOBase, can you please suggest the best way i can do this with Objectify4? Do you think writing DAOBase myself would be better?

Thanks,

Ramesh.V

  • 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-06T06:09:56+00:00Added an answer on June 6, 2026 at 6:09 am

    see https://github.com/stickfigure/motomapia/commits/15975ee0918dd5d7ecc25361eb66b377ce83c2d9/src/main/java/com/motomapia/Ofy.java for a couple ways to do it …

    I haven’t made the jump yet but that is the way I’ll go when I do…

    public class Ofy extends ObjectifyImpl<Ofy>
    {
        /** */
        public Ofy(OfyFactory base) {
            super(base);
        }
    
        /** More wrappers, fun */
        @Override
        public OfyLoader load() {
            return new OfyLoader(this);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using spring and I have a child model with a objectify key
I'm trying to read the EXIF data from an image, selected by a user.
I'm trying to create an Objective-C string using the '#' and '##' operators. I've
I am using objectify on appengine with the java runtime. I am also using
I am using objectify 3.1 on appengine and attempting to do a ancestor query.
I'm using Objective-C Distributed Objects (DO) to share data from one application (that collects
I have been using objective-C to develop in iOS. Now we want to develop
Possible Duplicate: how to make phone call by using objective c? I am trying
Using the API, trying to get items in a specific feed returns this: {direction:ltr,id:feed/
Really like objectify, although still struggling with what is the best way to structure

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.