Questions tagged as 'orm'

1
answer

Show Queries with ORM grouped by a field and SUM for each TYPE in DJANGO

Very good, I have records in my DATABASE in POSTGRES and from Django ORM I try to make a query: Each record has a COST and TYPE field, and there may be N record of only one type with different prices. What I want is to bring, the sum of the COST...
asked by 12.07.2017 / 23:14
1
answer

Generate queries in a form

How can I get a query from the entity or generated at the moment within a form field. I have two entities EquipoPv and CatEquipoPv where CatEquipoPv has a relationship of OneToMany with EquipoPv and trying to generate the query in the foll...
asked by 22.10.2018 / 19:02
1
answer

How to pass data between Includes in the same query of sequelize?

I have a problem with sequelize, I need to consult several tables in the same query, these are nested with Include: [] so fine, but I need to pass the result of a nested table (coins) to another table of another include (prices), since with re...
asked by 23.09.2018 / 21:51
0
answers

OrmLite calls empty builder without asking

I am using it in an ORMLite project and I have a small problem with ORMLite. It turns out that I have the following list of entities: One Area has Many Monitoring Points A Municipality has Many Areas A Province has Many Municipalities...
asked by 28.06.2018 / 17:53
0
answers

I have doubts about the traces in the database

I am doing a Database Management System in JAVA using orm and I would like to know what is used to register the traces with the layer of persistence of the Java application? . The Database was created in postgreSQL v9.3     
asked by 18.06.2018 / 08:25
0
answers

Traces of an application

I'm doing a database management system using ORM. How can I register the traces of the application using that same tool ??     
asked by 11.06.2018 / 18:30
0
answers

How do I use the queryForAll () method of OrmLite on Android?

I have created an entity, but at the time of doing the foreach it indicates that they are not the required types Dao dao; try { dao = getHelper().getPersonaDao(); for ( Persona persona:dao.queryForAll()){...
asked by 22.05.2018 / 15:11
2
answers

Convert SQL query into one for Django ORM

My question is this: I want to convert this query sql : SELECT "misuper_calendareventsretailerdelivery"."id", "misuper_calendareventsretailerdelivery"."normal_retailer_delivery_id", "misuper_calendareventsretailerdelivery"."deli...
asked by 18.04.2018 / 19:08
0
answers

Error with Insert MSSQL, PetaPoco and C # (WPF)

Good morning, I am developing a desktop application using WPF, in visual Studio 2017 ; and I'm using the PetaPoco library for CRUD with SQL. I would like to know if you could advise me in this case, since I do not find much information on...
asked by 30.03.2018 / 22:11
0
answers

How to get the attributes of another object with OrmLite in android?

I am working with OrmLite on android, I can obtain the attributes of my Debtor object with this code, but if I access the Debt object from Debtor, it returns null the attributes. On the other hand, if I access directly from the Debt object if th...
asked by 02.03.2018 / 17:48