Advertisement
Guest User

Untitled

a guest
May 12th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.03 KB | None | 0 0
  1. package br.com.roknauta.evolutionary.model;
  2.  
  3. import java.io.Serializable;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.GeneratedValue;
  8. import javax.persistence.GenerationType;
  9. import javax.persistence.Id;
  10. import javax.persistence.Table;
  11.  
  12. @Entity
  13. @Table(name="pokemon")
  14. public class Pokemon implements Serializable {
  15.  
  16. private static final long serialVersionUID = 1L;
  17.  
  18. @Id
  19. @GeneratedValue(strategy = GenerationType.IDENTITY)
  20. private Long id;
  21.  
  22. @Column(length=50,nullable=false)
  23. private String nome;
  24.  
  25. @Column(length=50,nullable=false)
  26. private String tipo1;
  27.  
  28. @Column(length=50,nullable=true)
  29. private String tipo2;
  30.  
  31. @Column(nullable=false)
  32. private Integer hp;
  33.  
  34. @Column(nullable=false)
  35. private Integer ataque;
  36.  
  37. @Column(nullable=false)
  38. private Integer defesa;
  39.  
  40. @Column(nullable=false)
  41. private Integer ataEspecial;
  42.  
  43. @Column(nullable=false)
  44. private Integer defEspecial;
  45.  
  46. @Column(nullable=false)
  47. private Integer speed;
  48. //private Nature nature;
  49.  
  50. @Column(nullable=false)
  51. private String habilidade;
  52.  
  53. public Long getId() {
  54. return id;
  55. }
  56.  
  57. public void setId(Long id) {
  58. this.id = id;
  59. }
  60.  
  61. public String getNome() {
  62. return nome;
  63. }
  64.  
  65. public void setNome(String nome) {
  66. this.nome = nome;
  67. }
  68.  
  69. public String getTipo1() {
  70. return tipo1;
  71. }
  72.  
  73. public void setTipo1(String tipo1) {
  74. this.tipo1 = tipo1;
  75. }
  76.  
  77. public String getTipo2() {
  78. return tipo2;
  79. }
  80.  
  81. public void setTipo2(String tipo2) {
  82. this.tipo2 = tipo2;
  83. }
  84.  
  85. public Integer getHp() {
  86. return hp;
  87. }
  88.  
  89. public void setHp(Integer hp) {
  90. this.hp = hp;
  91. }
  92.  
  93. public Integer getAtaque() {
  94. return ataque;
  95. }
  96.  
  97. public void setAtaque(Integer ataque) {
  98. this.ataque = ataque;
  99. }
  100.  
  101. public Integer getDefesa() {
  102. return defesa;
  103. }
  104.  
  105. public void setDefesa(Integer defesa) {
  106. this.defesa = defesa;
  107. }
  108.  
  109. public Integer getAtaEspecial() {
  110. return ataEspecial;
  111. }
  112.  
  113. public void setAtaEspecial(Integer ataEspecial) {
  114. this.ataEspecial = ataEspecial;
  115. }
  116.  
  117. public Integer getDefEspecial() {
  118. return defEspecial;
  119. }
  120.  
  121. public void setDefEspecial(Integer defEspecial) {
  122. this.defEspecial = defEspecial;
  123. }
  124.  
  125. public Integer getSpeed() {
  126. return speed;
  127. }
  128.  
  129. public void setSpeed(Integer speed) {
  130. this.speed = speed;
  131. }
  132.  
  133. /*public Nature getNature() {
  134. return nature;
  135. }
  136.  
  137. public void setNature(Nature nature) {
  138. this.nature = nature;
  139. }*/
  140.  
  141. public String getHabilidade() {
  142. return habilidade;
  143. }
  144.  
  145. public void setHabilidade(String habilidade) {
  146. this.habilidade = habilidade;
  147. }
  148.  
  149. }
  150.  
  151. <?xml version="1.0" encoding="UTF-8"?>
  152. <persistence version="2.1"
  153. xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  154. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  155. <persistence-unit name="evolutionary">
  156. <provider>org.hibernate.ejb.HibernatePersistence</provider>
  157. <properties>
  158. <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
  159. <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/evolutionary" />
  160. <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />
  161. <property name="hibernate.connection.username" value="root" />
  162. <property name="hibernate.connection.password" value="12345" />
  163. <property name="hibernate.archive.autodetection" value="class" />
  164. <property name="hibernate.show_sql" value="true" />
  165. <property name="hibernate.format_sql" value="true" />
  166. <property name="hibernate.hbm2ddl.auto" value="create" />
  167. </properties>
  168. </persistence-unit>
  169. </persistence>
  170.  
  171. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  172. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  173. <modelVersion>4.0.0</modelVersion>
  174. <groupId>br.com.roknauta</groupId>
  175. <artifactId>evolutionary</artifactId>
  176. <version>0.0.1-SNAPSHOT</version>
  177. <packaging>war</packaging>
  178. <build>
  179. <sourceDirectory>src</sourceDirectory>
  180. <plugins>
  181. <plugin>
  182. <artifactId>maven-compiler-plugin</artifactId>
  183. <version>3.5.1</version>
  184. <configuration>
  185. <source>1.6</source>
  186. <target>1.6</target>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <artifactId>maven-war-plugin</artifactId>
  191. <version>2.6</version>
  192. <configuration>
  193. <warSourceDirectory>WebContent</warSourceDirectory>
  194. <failOnMissingWebXml>false</failOnMissingWebXml>
  195. </configuration>
  196. </plugin>
  197. </plugins>
  198. </build>
  199. <dependencies>
  200.  
  201. <!-- Mojarra (implementacao do JSF) -->
  202. <dependency>
  203. <groupId>org.glassfish</groupId>
  204. <artifactId>javax.faces</artifactId>
  205. <version>2.2.13</version>
  206. <scope>compile</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.primefaces</groupId>
  210. <artifactId>primefaces</artifactId>
  211. <version>5.3</version>
  212. </dependency>
  213. <!--<dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId>
  214. <version>1.2</version> </dependency> -->
  215. <dependency>
  216. <groupId>mysql</groupId>
  217. <artifactId>mysql-connector-java</artifactId>
  218. <version>6.0.2</version>
  219. </dependency>
  220. <!-- <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId>
  221. <version>5.1.0.Final</version> </dependency> <dependency> <groupId>org.hibernate</groupId>
  222. <artifactId>hibernate-entitymanager</artifactId> <version>5.1.0.Final</version>
  223. </dependency> -->
  224.  
  225. <dependency>
  226. <groupId>org.hibernate</groupId>
  227. <artifactId>hibernate-validator</artifactId>
  228. <version>4.2.0.Final</version>
  229. <scope>provided</scope>
  230. <exclusions>
  231. <exclusion>
  232. <groupId>org.slf4j</groupId>
  233. <artifactId>slf4j-api</artifactId>
  234. </exclusion>
  235. </exclusions>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.hibernate</groupId>
  239. <artifactId>hibernate-jpamodelgen</artifactId>
  240. <version>1.1.1.Final</version>
  241. <scope>provided</scope>
  242. </dependency>
  243. </dependencies>
  244. </project>
  245.  
  246. mai 12, 2016 7:30:03 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
  247. ADVERTÊNCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:evolutionary' did not find a matching property.
  248. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  249. INFORMAÇÕES: Server version: Apache Tomcat/8.0.33
  250. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  251. INFORMAÇÕES: Server built: Mar 18 2016 20:31:49 UTC
  252. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  253. INFORMAÇÕES: Server number: 8.0.33.0
  254. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  255. INFORMAÇÕES: OS Name: Linux
  256. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  257. INFORMAÇÕES: OS Version: 4.4.0-21-generic
  258. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  259. INFORMAÇÕES: Architecture: amd64
  260. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  261. INFORMAÇÕES: Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
  262. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  263. INFORMAÇÕES: JVM Version: 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14
  264. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  265. INFORMAÇÕES: JVM Vendor: Oracle Corporation
  266. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  267. INFORMAÇÕES: CATALINA_BASE: /home/douglas/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  268. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  269. INFORMAÇÕES: CATALINA_HOME: /opt/apache-tomcat-8.0.33
  270. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  271. INFORMAÇÕES: Command line argument: -Dcatalina.base=/home/douglas/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
  272. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  273. INFORMAÇÕES: Command line argument: -Dcatalina.home=/opt/apache-tomcat-8.0.33
  274. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  275. INFORMAÇÕES: Command line argument: -Dwtp.deploy=/home/douglas/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
  276. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  277. INFORMAÇÕES: Command line argument: -Djava.endorsed.dirs=/opt/apache-tomcat-8.0.33/endorsed
  278. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.VersionLoggerListener log
  279. INFORMAÇÕES: Command line argument: -Dfile.encoding=UTF-8
  280. mai 12, 2016 7:30:03 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
  281. INFORMAÇÕES: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
  282. mai 12, 2016 7:30:03 AM org.apache.coyote.AbstractProtocol init
  283. INFORMAÇÕES: Initializing ProtocolHandler ["http-nio-8080"]
  284. mai 12, 2016 7:30:03 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  285. INFORMAÇÕES: Using a shared selector for servlet write/read
  286. mai 12, 2016 7:30:03 AM org.apache.coyote.AbstractProtocol init
  287. INFORMAÇÕES: Initializing ProtocolHandler ["ajp-nio-8009"]
  288. mai 12, 2016 7:30:03 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
  289. INFORMAÇÕES: Using a shared selector for servlet write/read
  290. mai 12, 2016 7:30:03 AM org.apache.catalina.startup.Catalina load
  291. INFORMAÇÕES: Initialization processed in 623 ms
  292. mai 12, 2016 7:30:03 AM org.apache.catalina.core.StandardService startInternal
  293. INFORMAÇÕES: Starting service Catalina
  294. mai 12, 2016 7:30:03 AM org.apache.catalina.core.StandardEngine startInternal
  295. INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/8.0.33
  296. mai 12, 2016 7:30:06 AM org.apache.jasper.servlet.TldScanner scanJars
  297. INFORMAÇÕES: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  298. mai 12, 2016 7:30:06 AM com.sun.faces.config.ConfigureListener contextInitialized
  299. INFORMAÇÕES: Inicializando Mojarra 2.2.13 ( 20160203-1910 unable to get svn info) para o contexto '/evolutionary'
  300. mai 12, 2016 7:30:06 AM com.sun.faces.spi.InjectionProviderFactory createInstance
  301. INFORMAÇÕES: JSF1048: Anotações PostConstruct/PreDestroy presentes. Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
  302. mai 12, 2016 7:30:07 AM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
  303. INFORMAÇÕES: Running on PrimeFaces 5.3
  304. mai 12, 2016 7:30:07 AM org.apache.coyote.AbstractProtocol start
  305. INFORMAÇÕES: Starting ProtocolHandler ["http-nio-8080"]
  306. mai 12, 2016 7:30:07 AM org.apache.coyote.AbstractProtocol start
  307. INFORMAÇÕES: Starting ProtocolHandler ["ajp-nio-8009"]
  308. mai 12, 2016 7:30:07 AM org.apache.catalina.startup.Catalina start
  309. INFORMAÇÕES: Server startup in 4132 ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement