How to deal with a legacy schema when using Oracle Before Insert Trigger for ID generation in Hibernate

We are using Oracle. For a given table we have a primary key which is set by a trigger before an insert is performed, for example: CREATE OR REPLACE TRIGGER Table_name_TRG BEFORE INSERT ON Table_name REFERENCING NEW AS New OLD AS Old FOR EACH ROW BEGIN :new.ID := Sequence_name.nextval; END Table_name_TRG; The trigger simply calls a ...

Read More

Commander – A simple sample application to rule your environments

Just an incredibly simple way to start/stop any server instance, from the same place. Our team is responsible for deploying onto, starting and and stopping test servers. Sometimes the servers don't respond and you need to restart them. You can contact us or, with the help of "COMMANDER", do it by yourself. A brief overview "COMMANDER" is a ...

Read More

Overridden and overloaded methods in Java

Just a short post to illustrate the rules of overriding or overloading a method in Java. A deep understanding of this powerful Java mechanisms is a basic skill for every Java developer (as well as OOP and OOD proficiency) Let's start with an example. package eu.albertomorales.OCAOCP.threads.example3; public class Rectangle { ...

Read More

Don’t rely on inherited code, keep your eyes open

There is a cost to making mistakes when coding, and the cost of not dealing with these mistakes will increase over time. Do you remember the technical debt metaphor? We don’t really know how much debt we have taken on – you may have taken on a lot of unintentional technical debt – and you may still be taking it on without knowing it. ...

Read More

We share our first thing in Thingiverse: M-830B multimeter holder

We've been needing this thing for several years. This multimeter is one of the most extended tools among novices and apprentices, due to its simplicity and its price (about 6€). But it has a problem that bothers users: it hasn't got a leg or holder, so you are obligated to stand it onto something to help you to read the screen, and with ...

Read More

Impresión de la primera pieza diseñada por nosotros

En mi casa deben estar hasta las narices de mi, lo sospecho. Llevan un año oyéndome decir que vamos a poder "imprimir cosas". Suena un poco raro... pero lo que si es cierto es que por lo menos, había generado inquietud. Seguro que la expectación de mis hijos por la Enredinator debe ser del tipo.. "mamá, vamos a tener que encerrar a ...

Read More

Primera impresión de Enredinator – Impresora 3D (Prusa IT2)

Este era un momento muy esperado. Sobre todo, debido al tiempo que, por unos u otros motivos, ha transcurrido desde que iniciamos su construcción. De momento, todavía utilizamos el software original de los videotutoriales de Obijuan, esto es,  Skeinforge, Sprinter superestable, y Pronterface. Hemos impreso con ABS de 3mm de Moebyus Machines, ...

Read More