Questions tagged [or-mapper]

Object-relational mapping (O/R mapping) is a programming technique for converting data between incompatible type systems in object-oriented programming languages.

10 questions
5
votes
6 answers

Do any OR Mappers provide Asynchronous Methods?

Do any .Net O/R (object/Relational) Mappers provide Asynchronous methods out of the box? I don't want to have to write the boiler plate for the asynchronous method if possible I have rolled my own DAL with Asynchronous methods using the CCR…
Andrew Harry
  • 13,773
  • 18
  • 67
  • 102
4
votes
1 answer

Does querydsl suffers of the same limitations as JPA Criteria API?

JPA Criteria API has some important limitations. For example: no support for right-outer-join support for left-outer-join only if the relation in the entities is in the same direction no support for subquery neither in SELECT nor in FROM…
jeromerg
  • 2,997
  • 2
  • 26
  • 36
2
votes
3 answers

JPA: How to handle versioned entities?

I have a versioning on an entity as part of its primary key. The versioning is done via a timestamp of the last modification: @Entity @Table(name = "USERS") @IdClass(CompositeKey.class) public class User { @Column(nullable = false) private…
tgr
  • 3,557
  • 4
  • 33
  • 63
1
vote
1 answer

ORM for Compact Framework 3.5 winforms app with external ms sql server 2005

I'm building a .NET CF 3.5 application that will communicate with an server based MS SQL server 2005. The communication will happen trough the devices's WiFi connection. I've been looking for a good O/R mapper and am a bit lost. Most sites/people…
Thomas Stock
  • 10,927
  • 14
  • 62
  • 79
1
vote
0 answers

Using a model with a generic List and store in SQLite 3

I wanted to use a List in my Model within my .NET MAUI App and store it in my SQLite 3 database. When I use the following model and try to insert it with InsertAsync(…) I get an Error that the Table does not…
OXO
  • 391
  • 1
  • 8
1
vote
1 answer

Hibernate Mapping many to one table with annotations

How would I create a HQL query to select the patients mutiple email address when provided with the fields patient firstname and lastname. tables and classed provided below. CREATE TABLE Patient ( Patient_Id INT NOT NULL AUTO_INCREMENT, First_Name…
Robbie
  • 53
  • 6
1
vote
1 answer

Is there any way to "group by" by date with Django.models when my MySQL field has hours/min/second as well?

I want to query to MySQL using Django.models, but since I put my created_at (Datetime field) with datetime.datetime.now(), it seems to hard to "group by" with each date. I made a query like this: start = time.strptime("2012/6/25","%Y/%m/%d") end =…
suslov
  • 129
  • 6
1
vote
1 answer

How can I use the entity framework fluent API configurations in my own application logic?

I used EF fluent API for mapping my POCO classes to database tables. I need to use the mapping configuration in my own application logic. More specifically let say I have entity "Product" and I have the following mapping for this entity: public…
Babak
  • 108
  • 1
  • 8
0
votes
0 answers

NHibernate handle multiple requests Delete and SaveOrUpdate

I have .net core api that uses NHibernate, session is per request, when request start session is open at the end of the request session is committed in transaction. One of the tables is being used as cache table so rows should be deleted in some…
user3132295
  • 288
  • 4
  • 23
0
votes
1 answer

How to handle java.io.InvalidClassException?

Please tell me what i do this exception is coming and and i don't know how to remove it java.io.InvalidClassException: applyonline.Applicant; local class incompatible: stream classdesc serialVersionUID = 8333391523914038903, local class…
Hamza
  • 49
  • 6