Alternatives to Hibernate logo

Alternatives to Hibernate

MyBatis, Spring, Entity Framework, SQLAlchemy, and Prisma are the most popular alternatives and competitors to Hibernate.
1.7K
1.1K
+ 1
30

What is Hibernate and what are its top alternatives?

Hibernate is a suite of open source projects around domain models. The flagship project is Hibernate ORM, the Object Relational Mapper.
Hibernate is a tool in the Object Relational Mapper (ORM) category of a tech stack.

Top Alternatives to Hibernate

  • MyBatis
    MyBatis

    It is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. It eliminates almost all of the JDBC code and manual setting of parameters and retrieval of results. It can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records. ...

  • Spring
    Spring

    A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments. ...

  • Entity Framework
    Entity Framework

    It is an object-relational mapper that enables .NET developers to work with relational data using domain-specific objects. It eliminates the need for most of the data-access code that developers usually need to write. ...

  • SQLAlchemy
    SQLAlchemy

    SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. ...

  • Prisma
    Prisma

    Prisma is an open-source database toolkit. It replaces traditional ORMs and makes database access easy with an auto-generated query builder for TypeScript & Node.js. ...

  • Sequelize
    Sequelize

    Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more. ...

  • Dapper
    Dapper

    It is an object-relational mapping product for the Microsoft.NET platform: it provides a framework for mapping an object-oriented domain model to a traditional relational database. ...

  • ent
    ent

    It is a simple, yet powerful entity framework for Go, that makes it easy to build and maintain applications with large data-models. ...

Hibernate alternatives & related posts

MyBatis logo

MyBatis

244
168
17
SQL Mapper Framework for Java
244
168
+ 1
17
PROS OF MYBATIS
  • 6
    Easy to use
  • 3
    Extensions
  • 3
    Integrated with Spring
  • 3
    Flexible
  • 2
    Data-first support
CONS OF MYBATIS
    Be the first to leave a con

    related MyBatis posts

    Spring logo

    Spring

    3.8K
    4.6K
    1.1K
    Provides a comprehensive programming and configuration model for modern Java-based enterprise applications
    3.8K
    4.6K
    + 1
    1.1K
    PROS OF SPRING
    • 228
      Java
    • 157
      Open source
    • 135
      Great community
    • 123
      Very powerful
    • 114
      Enterprise
    • 64
      Lot of great subprojects
    • 59
      Easy setup
    • 44
      Convention , configuration, done
    • 40
      Standard
    • 30
      Love the logic
    • 12
      Good documentation
    • 11
      Dependency injection
    • 10
      Stability
    • 8
      MVC
    • 6
      Easy
    • 3
      Makes the hard stuff fun & the easy stuff automatic
    • 3
      Strong typing
    • 2
      Code maintenance
    • 2
      Best practices
    • 2
      Maven
    • 2
      Great Desgin
    • 2
      Easy Integration with Spring Security
    • 2
      Integrations with most other Java frameworks
    • 1
      Java has more support and more libraries
    • 1
      Supports vast databases
    • 1
      Large ecosystem with seamless integration
    • 1
      OracleDb integration
    • 1
      Live project
    CONS OF SPRING
    • 15
      Draws you into its own ecosystem and bloat
    • 3
      Verbose configuration
    • 3
      Poor documentation
    • 3
      Java
    • 2
      Java is more verbose language in compare to python

    related Spring posts

    Is learning Spring and Spring Boot for web apps back-end development is still relevant in 2021? Feel free to share your views with comparison to Django/Node.js/ ExpressJS or other frameworks.

    Please share some good beginner resources to start learning about spring/spring boot framework to build the web apps.

    See more

    I am consulting for a company that wants to move its current CubeCart e-commerce site to another PHP based platform like PrestaShop or Magento. I was interested in alternatives that utilize Node.js as the primary platform. I currently don't know PHP, but I have done full stack dev with Java, Spring, Thymeleaf, etc.. I am just unsure that learning a set of technologies not commonly used makes sense. For example, in PrestaShop, I would need to work with JavaScript better and learn PHP, Twig, and Bootstrap. It seems more cumbersome than a Node JS system, where the language syntax stays the same for the full stack. I am looking for thoughts and advice on the relevance of PHP skillset into the future AND whether the Node based e-commerce open source options can compete with Magento or Prestashop.

    See more
    Entity Framework logo

    Entity Framework

    1.9K
    224
    18
    An object-relational mapper that enables .NET developers to work with relational data
    1.9K
    224
    + 1
    18
    PROS OF ENTITY FRAMEWORK
    • 5
      LINQ
    • 3
      Object Oriented
    • 3
      Strongly Object-Oriented
    • 2
      Multiple approach (Model/Database/Code) first
    • 2
      Code first approach
    • 1
      Model first approach
    • 1
      Auto generated code
    • 1
      Strongly typed entities
    • 0
      Database first
    CONS OF ENTITY FRAMEWORK
      Be the first to leave a con

      related Entity Framework posts

      SQLAlchemy logo

      SQLAlchemy

      1.2K
      484
      7
      The Python SQL Toolkit and Object Relational Mapper
      1.2K
      484
      + 1
      7
      PROS OF SQLALCHEMY
      • 7
        Open Source
      CONS OF SQLALCHEMY
      • 2
        Documentation

      related SQLAlchemy posts

      Hello everybody! I want to create an easy to use website (and simplified) builder. Users create a site, add their domain and edit Pages inside an Admin Area inside predefined "Blocks" like with Wagtail.

      There should be several default templates/themes and layouts. Choosing a different theme might change both the layout and styling. And I'm looking for SSR or SSG with a focus on the end-user's Page performance.

      Current Stack:

      • GraphQL for the dynamic part (for example data to Pricing might not be required on the homepage, or images might go into gallery in one theme, and on the homepage in another theme)

      • FastAPI and SQLAlchemy to store Data. I have prior experience with Wagtail and Django and want to stay with Python and learn Fastapi

      • NGINX to handle domain-specific things (the how is not yet refined)

      I want a scalable architecture and especially a fast frontend. I'm tending to use SvelteKit, but I'm afraid that the dynamic part won't make me happy after having hundreds of sites, as the bundler cannot load themes dynamically. sveltekit - dynamic import

      I want to handle the scenario: Admin-User chooses a theme and other options for the site (domain) and the End-User Frontend/Session/Cookie will have to fetch and store data about the theme and load subsequent calls to prerendered sites.

      Also the "hundreds of sites" might not be all covered by 5 Themes, because users may purchase a custom-made theme, and I would have to manage one big project having lots of different Styleguides and flows. I even thought of statically building the site whenever the user makes a change, maybe using Hugo (or VitePress?). Then I would have to take more care with the page recreation and it would be easily routable instead of nesting every component with logic in the frontend... I think. But this I haven't thought through yet.

      Can anyone please help?

      See more
      Django Stars
      Developer at Django Stars | 3 upvotes 路 143.9K views

      Merging Django ORM with SQLAlchemy for Easier Data Analysis (Video Inside)

      Development of products with Django framework is usually easy and straightforward; great documentation, many tools out of the box, plenty of open source libraries and big community. Django ORM takes full control about SQL layer protecting you from mistakes, and underlying details of queries so you can spend more time on designing and building your application structure in Python code. However, sometimes such behavior may hurt - for example, when you鈥檙e building a project related to data analysis. Building advanced queries with Django is not very easy; it鈥檚 hard to read (in Python) and hard to understand what鈥檚 going on in SQL-level without logging or printing generated SQL queries somewhere. Moreover, such queries could not be efficient enough, so this will hit you back when you load more data into DB to play with. In one moment, you can find yourself doing too much raw SQL through Django cursor, and this is the moment when you should do a break and take a look on another interesting tool, which is placed right between ORM layer and the layer of raw SQL queries.

      See more
      Prisma logo

      Prisma

      919
      879
      54
      Modern Database Access for TypeScript & Node.js
      919
      879
      + 1
      54
      PROS OF PRISMA
      • 12
        Type-safe database access
      • 10
        Open Source
      • 8
        Auto-generated query builder
      • 6
        Supports multible database systems
      • 6
        Increases confidence during development
      • 4
        Built specifically for Postgres and TypeScript
      • 4
        Productive application development
      • 2
        Supports multible RDBMSs
      • 2
        Robust migrations system
      CONS OF PRISMA
      • 2
        Doesn't support downward/back migrations
      • 1
        Doesn't support JSONB
      • 1
        Do not support JSONB
      • 1
        Mutation of JSON is really confusing
      • 1
        Do not support JSONB

      related Prisma posts

      Divine Bawa
      at PayHub Ghana Limited | 16 upvotes 路 385.9K views

      I just finished a web app meant for a business that offers training programs for certain professional courses. I chose this stack to test out my skills in graphql and react. I used Node.js , GraphQL , MySQL for the #Backend utilizing Prisma as a database interface for MySQL to provide CRUD APIs and graphql-yoga as a server. For the #frontend I chose React, styled-components for styling, Next.js for routing and SSR and Apollo for data management. I really liked the outcome and I will definitely use this stack in future projects.

      See more
      Munkhtegsh Munkhbat
      Software Engineer Consultant at LoanSnap | 9 upvotes 路 217.3K views

      In my last side project, I built a web posting application that has similar features as Facebook and hosted on Heroku. The user can register an account, create posts, upload images and share with others. I took an advantage of graphql-subscriptions to handle realtime notifications in the comments section. Currently, I'm at the last stage of styling and building layouts.

      For the #Backend I used graphql-yoga, Prisma, GraphQL with PostgreSQL database. For the #FrontEnd: React, styled-components with Apollo. The app is hosted on Heroku.

      See more
      Sequelize logo

      Sequelize

      917
      1.4K
      141
      Easy-to-use multi SQL dialect ORM for Node.js
      917
      1.4K
      + 1
      141
      PROS OF SEQUELIZE
      • 42
        Good ORM for node.js
      • 31
        Easy setup
      • 20
        Support MySQL & MariaDB, PostgreSQL, MSSQL, Sqlite
      • 14
        Open source
      • 13
        Free
      • 11
        Promise Based
      • 4
        Recommend for mongoose users
      • 3
        Atrocious documentation, buggy, issues closed by bots
      • 3
        Typescript
      CONS OF SEQUELIZE
      • 30
        Docs are awful
      • 9
        Relations can be confusing

      related Sequelize posts

      Dieudonn茅 ALLOGNON
      Junior Fullstack Developer | 5 upvotes 路 235.4K views

      Hey! I am actually in internship and have an app to create for my structure. It will be an intern app which will allow crud dashboard actions with some data provided by the use of an API of one of the structure partner and make a correspondence to data contained in a private database. Since it's an intern app, I thought about Electron for a desktop app because I did a lot of web with Laravel and the structure goes more for the desktop app. But it will be my first occasion working with this tech.

      Is Electron a good choice? Wich ORM should be more complete and adapted to this between Sequelize and TypeORM? (Database will be MySQL) Some charts will be displayed in the app. Is there a library (preferably without jQuery) that suits this stack?

      Thank you !

      See more
      Vyshnav KPI
      Application Developer at KPI suite tech | 4 upvotes 路 34K views
      Shared insights
      on
      SequelizeSequelizePrismaPrisma

      Can you help me with the following:

      1. What additional functionality is present in Prisma when compared with Sequelize?
      2. Is getter and setter method available in Prisma? If then please provide any reference or resource.
      3. Is Hooks, hierarchy present in Prisma?
      See more
      Dapper logo

      Dapper

      593
      77
      6
      A simple object mapper for .Net
      593
      77
      + 1
      6
      PROS OF DAPPER
      • 6
        Fastest ORM
      CONS OF DAPPER
        Be the first to leave a con

        related Dapper posts

        ent logo

        ent

        398
        27
        0
        An entity framework for Go
        398
        27
        + 1
        0
        PROS OF ENT
          Be the first to leave a pro
          CONS OF ENT
            Be the first to leave a con

            related ent posts