Questions tagged as 'orm'

0
answers

Automatic database creation with Hibernate

Hibernate has the ability to automatically create tables in the database based on the entities that have been mapped, similarly to EntityFramework in .Net     
asked by 01.04.2018 / 19:12
1
answer

How to get child entities from a data constraint? [duplicate]

Well, my problem is the following, I need to bring an entity from the database and it contains several lists that should bring their data following a rule, the data_exclusao field should be null. All entities have the data_exclusa...
asked by 01.03.2018 / 16:28
0
answers

JPA references an unknown entity

I have the following scenario: RpsV3Vo class: package nfse.vo; import java.io.Serializable; import java.util.Objects; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.pers...
asked by 13.12.2017 / 12:00
0
answers

Doubt in SQL conversion to Django ORM

Hello I am studying starting in Django ORM and would like help to convert the SQL below as I am not able to perform the necessary joins. Following: SELECT P.nome, T.nome FROM professor as D INNER JOIN pessoa_fisica AS PF ON (D.pessoa_fisi...
asked by 16.11.2017 / 15:08
0
answers

Best way to build a class to execute a SQL package

I am mounting a database access layer and need to access the functions inside a package on the oracle server. The orm already connects to the database and accesses tables and procedures through their respective repositories and entities. I...
asked by 22.09.2017 / 17:33
0
answers

API on existing system bank

I have a question, in our company we have a system, developed in MySQL and Delphi, this system is developed by a company, and we have several development projects, several new systems (created within our company) are made with CakePHP, we are pla...
asked by 20.06.2017 / 18:39
0
answers

Getters and Setters are automatically generated by Eloquent when we use relies / laravel to generate the Modules?

I have an already functional application. I'm moving on to laravel 5.4. Since the database already exists and with real data, my choice is not to use Migrations. One option would be to use the Query Builder to access the data in the database....
asked by 06.03.2017 / 15:46
2
answers

How to pass an Array to the IN clause of a flat query?

I'm using ActiveRecord to run queries on several different databases. In one of the queries, I have to do the following: publications_to_read = [1,2,3,4] ActiveRecord::Base.connection.execute("ALTER TABLE publications SET readed = TRUE WHERE i...
asked by 13.04.2016 / 02:22
1
answer

It is giving error when I try to do the ORM

I created a table but when I run the application more than once it gives this problem. Why does this happen? environments { development{ dataSource { dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''...
asked by 30.12.2015 / 00:27
0
answers

forein key reference, with the Entity Framework

To have a difficulty doing an insert , because the EF indicates that there is an error in the table reference. But in my config , I indicate what is the foreing key . My config: public class TestDriveConfig : EntityTypeConfiguration<T...
asked by 14.08.2015 / 19:52