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 class Pet { | |
| public static enum Type { | |
| CAT, DOG | |
| } | |
| public static enum Color { | |
| BLACK, WHITE, BROWN, GREEN | |
| } | |
| private String name; | |
| private Type type; | |
| private LocalDate birthdate; |
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
| package org.openjdk.jmh.samples; | |
| import java.time.LocalDate; | |
| import java.time.Month; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import java.util.Random; | |
| public class Pet { |
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
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.sql.Connection; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; |
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
| package pg.play | |
| import play.api.libs.concurrent.Akka | |
| import play.api.libs.concurrent.Execution.Implicits.defaultContext | |
| import scala.concurrent.duration._ | |
| import akka.actor._ | |
| import play.api.test.FakeApplication | |
| import play.api.libs.iteratee.Enumerator | |
| import akka.pattern.ask | |
| import scala.language.postfixOps |
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
| @UrlBinding("/bugzooky/multiBug.action") | |
| public class MultiBugActionBean extends BugzookyActionBean { | |
| @Service(impl=BugManagerImpl.class) | |
| @Autowired | |
| @EJB | |
| private BugManager bugManager; | |
| ... | |
| } |
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
| @SkipInjectionError | |
| public class BugzookyBootstrap implements StarsBootstrap { | |
| @PersistenceContext | |
| private EntityManager em; | |
| @Resource | |
| private UserTransaction userTx; | |
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
| <%@taglib prefix="ckeditor" uri="http://www.siberhus.com/taglibs/ckeditor"%> | |
| <!-- | |
| Then put the following resources tag in <head>. The minified attribute indicates which | |
| file will be used. If it is true, the minified javascript will be used instead of the | |
| well-indented version. | |
| --> | |
| <ckeditor:resources minified="true" /> | |
| <!-- |
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
| <ckeditor:editor id="text1" name="text1" height="400px" width="80%" toolbar="Basic" > | |
| ${text1} | |
| </ckeditor> | |
| <ckeditor:editor id="text2" name="text2" height="400px" width="80%" toolbar="Basic" > | |
| ${text2} | |
| </ckeditor> | |
| <ckeditor:editor id="text3" name="text3" height="400px" width="80%" toolbar="Basic" > | |
| ${text3} | |
| </ckeditor> | |
| <!-- |
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
| #the custom javascript configuration for ckeditor | |
| ckeditor.config=/ckeditor/myckconfig.js | |
| #Filter file type based on its extension. | |
| ckeditor.skipAllowedItemsCheck=false | |
| #filebrowser can be either 'ofm' or 'standard' | |
| ckeditor.defaulFileBrowser=ofm | |
| ckeditor.connectors.prefix= | |
| #basedir can have variable in these scopes - request,session,application | |
| ckeditor.upload.basedir=/uploads/${userId} | |
| #baseurl can have variable in these scopes - request,session,application |
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
| <persistence 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_1_0.xsd" | |
| version="1.0"> | |
| <persistence-unit name="default"> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> | |
| <properties> | |
| <property name="hibernate.archive.autodetection" value="class" /> | |
| <property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" /> | |
| <property name="hibernate.connection.url" value="jdbc:hsqldb:mem:bugzooky" /> |