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" standalone="no"?> | |
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
<persistence-unit name="primary"> | |
<jta-data-source>java:jboss/datasources/PeopleDS</jta-data-source> | |
<properties> | |
<property name="hibernate.hbm2ddl.auto" value="create-drop"/> | |
<property name="hibernate.show_sql" value="false"/> | |
<property name="hibernate.transaction.flush_before_completion" value="true"/> | |
</properties> | |
</persistence-unit> |
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
@Entity | |
public class Person { | |
@GeneratedValue | |
@Id | |
private long id; | |
private String firstName; | |
private String lastName; | |
private String rfid; | |
private String job; |
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
// criamos o Accordion | |
Accordion accordion = new Accordion(); | |
// criando os paineis do Accordion. Notem que o construtor recebe o | |
// texto que vai aparecer e o nó | |
TitledPane painel1 = new TitledPane("Painel 1", new Label( | |
"O Primeiro Painel")); | |
TitledPane painel2 = new TitledPane("Painel 2", new Button( | |
"Sou um botão do painel 2")); | |
TitledPane painel3 = new TitledPane("Painel 3", new Rectangle(150, 50)); | |
// Adicionando um ícone ao Painel |
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 org.jugvale.rfid; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Scanner; | |
import java.util.stream.Collectors; |
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 org.jugvale.rfid.ui; | |
import java.io.IOException; | |
import java.nio.file.Path; | |
import java.util.concurrent.ExecutionException; | |
import java.util.function.Consumer; | |
import javafx.concurrent.Task; | |
import javafx.scene.control.Label; | |
import javafx.scene.control.ListView; |
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 org.jugvale.peoplemanagement.rest; | |
import java.util.List; | |
import javax.enterprise.context.RequestScoped; | |
import javax.inject.Inject; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.DELETE; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.POST; |
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"?> | |
<jboss-web> | |
<security-domain>other</security-domain> | |
</jboss-web> |
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
import java.util.List; | |
import javax.enterprise.context.RequestScoped; | |
import javax.inject.Inject; | |
import javax.ws.rs.Consumes; | |
import javax.ws.rs.DELETE; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.POST; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import javax.ws.rs.Produces; |
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 com.redhat.gss.bpms.client; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Properties; | |
import javax.naming.InitialContext; | |
import javax.naming.NamingException; |
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
<dependency> | |
<groupId>com.sensedia</groupId> | |
<artifactId>transparencia-java-sdk</artifactId> | |
<version>1.0</version> | |
</dependency> |
OlderNewer