This file contains hidden or 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
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
<encoding>UTF-8</encoding> | |
<compilerArgument>-proc:none</compilerArgument> | |
</configuration> | |
</plugin> |
This file contains hidden or 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
@XmlRootElement | |
@Entity | |
@Table(name = "sc_table") | |
@Inheritance(strategy = InheritanceType.JOINED) | |
@DiscriminatorColumn(name = "sc_table_type", discriminatorType = DiscriminatorType.STRING) | |
public class ScTable extends ScModel implements Serializable { | |
@Getter | |
@Setter | |
@Column(name = "code") | |
private String code; |
This file contains hidden or 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 Product implements Serializable { | |
@Id | |
private Long id; | |
@Transient | |
private String translation; | |
public String getTranslation() { | |
return translation; |
This file contains hidden or 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"?> | |
<module xmlns="urn:jboss:module:1.0" name="com.mysql"> | |
<resources> | |
<resource-root path="mysql-connector-java-5.1.24-bin.jar"/> | |
</resources> | |
<dependencies> | |
<module name="javax.api"/> | |
</dependencies> | |
</module> |
This file contains hidden or 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
<driver name="mysql" module="com.mysql"> | |
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class> | |
</driver> |
This file contains hidden or 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
<datasource jta="true" jndi-name="java:jboss/datasources/TweetCamp" pool-name="TweetCampDS" enabled="true" use-java-context="true" use-ccm="true"> | |
<connection-url>jdbc:mysql://localhost:3306/TweetCamp</connection-url> | |
<driver>mysql</driver> | |
<pool> | |
<min-pool-size>10</min-pool-size> | |
<max-pool-size>100</max-pool-size> | |
<prefill>true</prefill> | |
<use-strict-min>false</use-strict-min> | |
<flush-strategy>FailingConnectionOnly</flush-strategy> | |
</pool> |
This file contains hidden or 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
@RunWith(Arquillian.class) | |
public class FoodResourceTest { | |
@Deployment | |
public static WebArchive createDeployment() { | |
return ShrinkWrap.create(WebArchive.class, "test.war") | |
.addPackages(true, "eu.jugcologne.foodeys") | |
.addClass(RestApplication.class) | |
.addAsResource("test-persistence.xml", "META-INF/persistence.xml") | |
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml"); | |
} |
This file contains hidden or 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
... | |
public void googleGlassInit(Camera camera) { | |
Camera.Parameters params = camera.getParameters(); | |
params.setPreviewFpsRange(30000, 30000); | |
params.setPreviewSize(640,360); | |
camera.setParameters(params); | |
} | |
... |
This file contains hidden or 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 new configuration that specifies the error correction | |
Map<EncodeHintType, ErrorCorrectionLevel> hints = new HashMap<EncodeHintType, ErrorCorrectionLevel>(); | |
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H); | |
QRCodeWriter writer = new QRCodeWriter(); | |
BitMatrix bitMatrix = null; | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
try { | |
// Create a qr code with the url as content and a size of 250x250 px |
This file contains hidden or 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 | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 8.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :20140312 | |
#usage :/bin/bash wildfly-install.sh | |
WILDFLY_VERSION=8.1.0.CR2 | |
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION |
OlderNewer