This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Embedded | |
private Log log = new Log(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ip addr add 192.168.0.183/24 dev eth0 #Configura o ip | |
ip route add default via 192.168.0.106 #Configura o proxy | |
sudo ip link set dev eth0 up #Sobe a interface | |
# Verificar o arquivo /etc/resolv.conf, deve conter as seguintes linhas | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 | |
#Subir o postgres | |
su - postgres #Loga como superuser postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO pais (id, nome) VALUES (132, 'Afeganistão'); | |
INSERT INTO pais (id, nome) VALUES (175, 'Albânia, República da'); | |
INSERT INTO pais (id, nome) VALUES (230, 'Alemanha'); | |
INSERT INTO pais (id, nome) VALUES (310, 'Burkina Faso'); | |
INSERT INTO pais (id, nome) VALUES (370, 'Andorra'); | |
INSERT INTO pais (id, nome) VALUES (400, 'Angola'); | |
INSERT INTO pais (id, nome) VALUES (418, 'Anguilla'); | |
INSERT INTO pais (id, nome) VALUES (434, 'Antígua e Barbuda'); | |
INSERT INTO pais (id, nome) VALUES (477, 'Antilhas Holandesas'); | |
INSERT INTO pais (id, nome) VALUES (531, 'Arábia Saudita'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE estado ( | |
id integer NOT NULL, | |
nome character varying(50) NOT NULL, | |
sigla character varying(3) NOT NULL, | |
pais_id bigint | |
); | |
INSERT INTO estado (id, nome, sigla, pais_id) VALUES (17, 'Tocantins', 'TO', 1058); | |
INSERT INTO estado (id, nome, sigla, pais_id) VALUES (11, 'Rondônia', 'RO', 1058); | |
INSERT INTO estado (id, nome, sigla, pais_id) VALUES (12, 'Acre', 'AC', 1058); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE municipio ( | |
id integer NOT NULL, | |
nome character varying(100) NOT NULL, | |
estado_id bigint NOT NULL | |
); | |
INSERT INTO municipio (id, nome, estado_id) VALUES (5300108, 'Brasília', 53); | |
INSERT INTO municipio (id, nome, estado_id) VALUES (1400050, 'Alto Alegre', 14); | |
INSERT INTO municipio (id, nome, estado_id) VALUES (1400027, 'Amajari', 14); | |
INSERT INTO municipio (id, nome, estado_id) VALUES (1400100, 'Boa Vista', 14); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.reficio.rcp</groupId> | |
<artifactId>example-p2-site</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0.0</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
oldbase="gruber" | |
newbase="gruberteste" | |
nomearquivo="$oldbase-$(date +%d%m%Y-%H%M%S).sql" | |
outputfile="/home/gts/sql-base-fiscal/$nomearquivo" | |
httpserver="/srv/http/" | |
echo "===========================================" | |
echo "Fazendo dump da base \"$oldbase\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row" style="margin-top: 10px"> | |
<div class="span4 well"> | |
<h3 class="centralizado"><img src="/assets/temple.png" /> | |
<a href="<%= ministerios_path %>" class="no-style">Ministérios</a> | |
</h3> | |
<p>Aqui vai um texto meio longo, mas eu acho que nao vai ultrapassar o well</p> | |
</div> | |
<div class="span4 well"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[EL Finest]: query: 2013-03-25 14:00:34.198--UnitOfWork(23021881)--Thread(Thread[main,6,main])--Execute query ReadObjectQuery(referenceClass=Produto sql="SELECT ID, ATIVO, CODIGOINTERNO, DERIVADOPETROLEO, DESCRICAO, EANCOMERCIAL, EANTRIBUTADO, INFADICIONAL, PESOBRUTO, PESOLIQUIDO, QUANTIDADEMINIMA, QUANTIDADETRIBUTACAO, UNIDADECOMERCIAL, UNIDADETRIBUTADO, usar_csts_ncms, VALORUNITARIOCOMERCIAL, VALORUNITARIOTRIBUTADO, CODIGOANP, CODIGOCODIF, QUANTIDADECOMBUSTIVEL, ESTADOCONSUMO_ID, PRODUTO_ID, DATAALTERACAO, DATACADASTRO, USUARIOALTERACAO_ID, USUARIOCADASTRO_ID, CSTICMS_ID, CSTIPI_ID, CSTPISCOFINS_ID, EMPRESA_ID, NCM_ID FROM PRODUTO WHERE (ID = ?)") | |
[EL Finest]: transaction: 2013-03-25 14:00:34.198--UnitOfWork(23021881)--Thread(Thread[main,6,main])--Register the existing object Produto [id=3, descricao=CD Beginners One] | |
[EL Finest]: transaction: 2013-03-25 14:00:34.199--UnitOfWork(23021881)--Thread(Thread[main,6,main])--Register the object Produto [id=3, descricao=CD Beginners One] | |
[EL Finest]: transaction: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.germantech.ecf.dominio.modelo.produto; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import javax.persistence.Column; | |
import javax.persistence.Embeddable; | |
import javax.persistence.ManyToOne; | |
import javax.validation.constraints.NotNull; |