Questions tagged as 'orm'

0
answers

How can I express the following Query to eloquent?

SELECT tipo_entidad.id, tipo_entidad.descripcion, tipo_entidad.vigente FROM tipo_entidad INNER JOIN estado AS e ON e.valor = tipo_entidad.vigente WHERE tipo_entidad.vigente=e.valor and e.tabla = 'VIGENCIA' AND (tipo_entidad.descripcion LIKE '%ad...
asked by 09.11.2017 / 04:00
0
answers

Error inserting row laravel 5.1 ORM mysql

I have this code in a laravel model: Log::info($this->TAG.'.trySave ('.session()->getId().')', ['msg' => 'We are gonna to save an order with shopify_id: '.$this->shopify_id]); $this->save(); Log::info($this->TAG.'.trySave ('....
asked by 22.06.2017 / 20:54
1
answer

Java, Hibernate, JPA, ORM @GeneratedValue

Good morning, I would like to know what these two notes on programming are for. ? Is it better than a self-rated id of type int? @GeneratedValue(generator ="system-uuid") @GenericGenerator(name="system-uuid",strategy="uuid")     
asked by 12.05.2017 / 19:21
1
answer

Codeigniter 3.1.4 with Eloquent 5.4 Service

Controller Services to get AWARDS including count and paged This is my service controller, with CODEIGNITER 3.4 and ELOQUENT 5.4 public function __construct() { parent::__construct(); header('Content-Type: application/json');...
asked by 12.05.2017 / 19:41
0
answers

How to make a query Inner Join in Django

I have the following models: class perfil(models.Model): usuario = models.OneToOneField(User, on_delete=models.CASCADE) carrera = models.TextField() promocion = models.TextField() telefono = models.TextField(max_length=11)...
asked by 20.02.2017 / 21:13
0
answers

Oracle Entity Framework - map tables of different schemes

I have several schemes (ESQ1, ESQ2, ESQ3, etc) and each scheme is for a different context, but there are cases in which I need to access tables of different schemes, and at the time of mapping the tables I can only see the tables of the user wit...
asked by 05.01.2017 / 14:11
1
answer

Help with ClassCastException with reflection in hibernate

Someone can support me with this exception: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType It happens when I run the following code in a DAO to use hibernate. The problem is in the get...
asked by 24.11.2016 / 20:21
1
answer

Improved for Interface of stored with Dapper

I am writing a proposal to replace the data access layer of the company where I work, for this I am using a generic interface to execute stored procedures using Dapper ORM. My question is how could the code be improved? This is the interfa...
asked by 26.08.2016 / 19:32
0
answers

what is the upload limit in bitbucket? problem when climbing 32 mb

I am using a ORM propel , to manage highs, lows, changes, in my database, I also use netbeans and bitbucket as a remote repository. I did push to my entire project that includes the propel folders and the models....
asked by 03.08.2016 / 19:31
4
answers

Delete by id - Laravel ORM

I want to do a delete by id with the ORM of Laravel , and from what I've read it's not possible, and it should be done a way similar to this one. File::find($code)->delete(); or $file = File::find($code); $file->delete(); in...
asked by 29.07.2016 / 10:23