Top "Orm" questions

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

Why does django's prefetch_related() only work with all() and not filter()?

suppose I have this model: class PhotoAlbum(models.Model): title = models.CharField(max_length=128) author = models.CharField(max_length=128) class …

django orm filter prefetch
"where exists" in Hibernate HQL

How can I write a "not exists" query in HQL? I am trying to get an HQL not exists query …

java hibernate orm hql
Sequelize.js foreign key

When using Sequelize.js, the following code doesn't add any foreign key on tables. var MainDashboard = sequelize.define('main_dashboard', { …

mysql node.js orm sequelize.js
JPA Criteria builder IN clause query

How to write criteria builder api query for below given JPQL query? I am using JPA 2.2. SELECT * FROM Employee e …

java jpa orm jpa-2.0 openjpa
How can I use UUIDs in SQLAlchemy?

Is there a way to define a column (primary key) as a UUID in SQLAlchemy if using PostgreSQL (Postgres)?

python postgresql orm sqlalchemy uuid
How to limit size of result set in doctrine 2?

If i'm using the findBy method of the respository class, how can I limit the size of the result set?

php orm doctrine-orm
What do scale and precision mean when specifying a decimal field type in Doctrine 2?

I'm creating a decimal field to hold a financial figure in Doctrine2 for my Symfony2 application. Currently, it looks like …

database symfony orm types doctrine-orm
getting result set into DTO with native SQL Query in Hibernate

I have a query like below select f.id, s.name, ss.name from first f left join second s …

java hibernate orm native-sql resulttransformer
What is the difference between an ORM and an ODM?

I am trying to figure out what the difference is between ORM and ODM, as far as I understand the …

database orm odm
Optional parameters with named query in Hibernate?

Is there any way to specify optional parameters (such as when search parameters are provided from a form and not …

java hibernate orm hql named-query