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" ?> | |
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"> | |
<persistence-unit name="order-old" transaction-type="RESOURCE_LOCAL"> | |
<class>model.Order</class> | |
<class>model.OrderLine</class> | |
<class>model.Customer</class> | |
<properties> | |
<!-- Change this to access your own database. --> |
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"?> | |
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
<persistence-unit name="ProjetoWEbMaven" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> | |
<properties> | |
<property name="javax.persistence.jdbc.url" | |
value="jdbc:mysql://mysql.nutricaonline.com:3306/nutricaonline?zeroDateTimeBehavior=convertToNull" /> | |
<property name="javax.persistence.jdbc.password" value="Sup0rt3" /> | |
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /> | |
<property name="javax.persistence.jdbc.user" value="nutricaonline" /> |
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"?> | |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
<hibernate-configuration> | |
<session-factory> | |
<!-- Database connection settings --> | |
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> | |
<property name="hibernate.connection.url">jdbc:mysql://ativacao.xkeysti.com.br:3306/DB_CAX</property> | |
<property name="hibernate.connection.username">xkey</property> | |
<property name="hibernate.connection.password">b50988995b</property> | |
<!-- JDBC connection pool (use the built-in) --> |
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 RaulJoaquim; | |
import javax.swing.JOptionPane; | |
public class ArvoreBinaria { | |
private static class ARVORE { | |
public String animal; | |
public ARVORE dir, esq; | |
} |
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.xkey.saxgeral.helpers; | |
import java.io.UnsupportedEncodingException; | |
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
public class MD5Helper { |
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.xkey.principal; | |
import com.xkey.principal.helpers.LoginHelper; | |
import com.google.common.collect.Lists; | |
import com.xkey.principal.bean.Login; | |
import com.xkey.saxgeral.helpers.SessionHelper; | |
import java.util.List; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import org.springframework.security.authentication.AuthenticationProvider; |
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.xkey.principal.renderers; | |
import java.io.IOException; | |
import java.util.List; | |
import javax.faces.component.UIComponent; | |
import javax.faces.component.UIInput; | |
import javax.faces.component.UINamingContainer; | |
import javax.faces.component.UISelectMany; | |
import javax.faces.context.FacesContext; | |
import javax.faces.context.ResponseWriter; |
NewerOlder