Top "Orm" questions

Object-relational mapping (ORM) is a technique for mapping object-oriented systems to relational databases.

What's the use of session.flush() in Hibernate

When we are updating a record, we can use session.flush() with Hibernate. What's the need for flush()?

java hibernate orm
select and update database record with a single queryset

How do I run an update and select statements on the same queryset rather than having to do two queries: …

sql django django-models orm django-queryset
Get the Query Executed in Laravel 3/4

How can I retrieve the raw executed SQL query in Laravel 3/4 using Laravel Query Builder or Eloquent ORM? For example, …

php laravel orm eloquent laravel-query-builder
JPA CascadeType.ALL does not delete orphans

I am having trouble deleting orphan nodes using JPA with the following mapping @OneToMany (cascade = CascadeType.ALL, fetch = FetchType.EAGER, …

java hibernate orm jpa jpa-2.0
How to make join queries using Sequelize on Node.js

I am using sequelize ORM; everything is great and clean, but I had a problem when I use it with …

mysql node.js orm sequelize.js
Entity Framework Code First - two Foreign Keys from same table

I've just started using EF code first, so I'm a total beginner in this topic. I wanted to create relations …

c# entity-framework orm code-first entity-framework-4.1
How to Make Laravel Eloquent "IN" Query?

I want to make query in Laravel Eloquent like here its raw MySQL query SELECT * from exampleTbl where id in(1,2,3,4) …

php laravel orm eloquent
What is the difference between persist() and merge() in JPA and Hibernate?

What is the difference between persist() and merge() in Hibernate? persist() can create a UPDATE & INSERT query, eg: SessionFactory …

java hibernate jpa orm entity
Efficiently updating database using SQLAlchemy ORM

I'm starting a new application and looking at using an ORM -- in particular, SQLAlchemy. Say I've got a column …

python orm sqlalchemy
Hibernate: flush() and commit()

Is it good practice to call org.hibernate.Session.flush() separately? As said in org.hibernate.Session docs, Must be …

java hibernate orm