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.security.Principal; | |
public class PlainRolePrincipal implements Principal { | |
String roleName; | |
public PlainRolePrincipal(String name) { | |
roleName = name; | |
} | |
public String getName() { |
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.application.model.repository; | |
import static org.hamcrest.Matchers.contains; | |
import static org.hamcrest.Matchers.not; | |
import static org.junit.Assert.assertThat; | |
import java.util.List; | |
import org.junit.After; | |
import org.junit.Before; |
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.dilneicunhaweblog.model.usefull; | |
import javax.enterprise.context.RequestScoped; | |
import javax.enterprise.inject.Disposes; | |
import javax.enterprise.inject.Produces; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
/** |
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.uoldiveonfse.usefull; | |
import java.io.*; | |
import java.security.KeyStore; | |
import java.security.MessageDigest; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.*; | |
/** |
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
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>jaxb2-maven-plugin</artifactId> | |
<version>2.2</version> | |
<configuration> | |
<xjbSources> | |
<xjbSource>src/main/resources/binding.xjb</xjbSource> | |
</xjbSources> | |
</configuration> |
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.your_projet.ws.handle; | |
import java.io.StringWriter; | |
import java.util.Set; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
import javax.xml.namespace.QName; | |
import javax.xml.soap.SOAPBody; | |
import javax.xml.soap.SOAPEnvelope; |
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.io.*; | |
import java.security.KeyStore; | |
import java.security.MessageDigest; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.*; | |
/** | |
* Classe que gera arquivo truststore para qualquer URL. | |
* |
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.weblog.model.entity; | |
import java.util.Date; | |
import javax.persistence.Entity; | |
import javax.persistence.EnumType; | |
import javax.persistence.Enumerated; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.GenerationType; | |
import javax.persistence.Id; | |
import javax.persistence.Lob; | |
import javax.persistence.PrePersist; |
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
Colaboração Reinaldo ;) | |
SELECT * FROM ALL_SEQUENCES | |
WHERE SEQUENCE_NAME LIKE '%SQ_NAME%' | |
SELECT * FROM ALL_SEQUENCES | |
WHERE LAST_NUMBER = 23246509 | |
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
/** | |
* The datetime that this record is created. | |
*/ | |
@NotNull | |
@Temporal(TemporalType.TIMESTAMP) | |
private Date creationDate; | |
/** | |
* The datetime that this record is modified. | |
*/ |
NewerOlder