daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Sep 22nd, 2016 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set 22, 2016 3:37:15 PM org.hibernate.Version logVersion
  2. INFO: HHH000412: Hibernate Core {5.0.1.Final}
  3. set 22, 2016 3:37:15 PM org.hibernate.cfg.Environment <clinit>
  4. INFO: HHH000206: hibernate.properties not found
  5. set 22, 2016 3:37:15 PM org.hibernate.cfg.Environment buildBytecodeProvider
  6. INFO: HHH000021: Bytecode provider name : javassist
  7. set 22, 2016 3:37:15 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
  8. INFO: HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
  9. set 22, 2016 3:37:15 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
  10. WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
  11. set 22, 2016 3:37:15 PM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
  12. GRAVE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
  13. javax.persistence.PersistenceException: Unable to build entity manager factory
  14.     at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:66)
  15.     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
  16.     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
  17.     at br.com.service.Relatorio.getGeral(Relatorio.java:34)
  18.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  19.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  20.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  21.     at java.lang.reflect.Method.invoke(Unknown Source)
  22.     at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
  23.     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
  24.     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  25.     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  26.     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  27.     at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
  28.     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  29.     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
  30.     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
  31.     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
  32.     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
  33.     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
  34.     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
  35.     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
  36.     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
  37.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  38.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  39.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  40.     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  41.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  42.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  43.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
  44.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  45.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  46.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
  47.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  48.     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  49.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  50.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
  51.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
  52.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
  53.     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
  54.     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
  55.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  56.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  57.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  58.     at java.lang.Thread.run(Unknown Source)
  59. Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
  60.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:244)
  61.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)
  62.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  63.     at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
  64.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  65.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
  66.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  67.     at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
  68.     at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
  69.     at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:770)
  70.     at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:797)
  71.     at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
  72.     ... 44 more
  73. Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]
  74.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:229)
  75.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.loadDriverIfPossible(DriverManagerConnectionProviderImpl.java:183)
  76.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildCreator(DriverManagerConnectionProviderImpl.java:139)
  77.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:78)
  78.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  79.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
  80.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  81.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145)
  82.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)
  83.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
  84.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
  85.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)
  86.     ... 55 more
  87. Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
  88.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:217)
  89.     at java.lang.ClassLoader.loadClass(Unknown Source)
  90.     at java.lang.ClassLoader.loadClass(Unknown Source)
  91.     at java.lang.Class.forName0(Native Method)
  92.     at java.lang.Class.forName(Unknown Source)
  93.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:226)
  94.     ... 66 more
  95.  
  96. set 22, 2016 3:37:15 PM org.apache.catalina.core.StandardWrapperValve invoke
  97. GRAVE: Servlet.service() for servlet [Jersey REST Service] in context with path [/Admin] threw exception
  98. javax.persistence.PersistenceException: Unable to build entity manager factory
  99.     at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:66)
  100.     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
  101.     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
  102.     at br.com.service.Relatorio.getGeral(Relatorio.java:34)
  103.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  104.     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  105.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  106.     at java.lang.reflect.Method.invoke(Unknown Source)
  107.     at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
  108.     at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
  109.     at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  110.     at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  111.     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  112.     at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
  113.     at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  114.     at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
  115.     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
  116.     at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
  117.     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
  118.     at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
  119.     at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
  120.     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
  121.     at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
  122.     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  123.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
  124.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  125.     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  126.     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
  127.     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
  128.     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
  129.     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
  130.     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  131.     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
  132.     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  133.     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  134.     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
  135.     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)
  136.     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1099)
  137.     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
  138.     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
  139.     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
  140.     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  141.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  142.     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  143.     at java.lang.Thread.run(Unknown Source)
  144. Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
  145.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:244)
  146.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)
  147.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  148.     at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
  149.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  150.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
  151.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  152.     at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
  153.     at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
  154.     at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:770)
  155.     at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:797)
  156.     at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
  157.     ... 44 more
  158. Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]
  159.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:229)
  160.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.loadDriverIfPossible(DriverManagerConnectionProviderImpl.java:183)
  161.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildCreator(DriverManagerConnectionProviderImpl.java:139)
  162.     at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:78)
  163.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
  164.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)
  165.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)
  166.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145)
  167.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)
  168.     at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
  169.     at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
  170.     at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)
  171.     ... 55 more
  172. Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
  173.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:217)
  174.     at java.lang.ClassLoader.loadClass(Unknown Source)
  175.     at java.lang.ClassLoader.loadClass(Unknown Source)
  176.     at java.lang.Class.forName0(Native Method)
  177.     at java.lang.Class.forName(Unknown Source)
  178.     at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:226)
  179.     ... 66 more
  180.  
  181. set 22, 2016 3:49:57 PM org.apache.catalina.core.StandardContext reload
  182. INFORMAÇÕES: Reloading Context with name [/Admin] has started
  183. set 22, 2016 3:49:58 PM org.apache.jasper.servlet.TldScanner scanJars
  184. 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.
  185. set 22, 2016 3:49:58 PM com.sun.jersey.api.core.PackagesResourceConfig init
  186. INFORMAÇÕES: Scanning for root resource and provider classes in the packages:
  187.   br.com.service
  188. set 22, 2016 3:49:58 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
  189. INFORMAÇÕES: Root resource classes found:
  190.   class br.com.service.EmailService
  191.   class br.com.service.Relatorio
  192.   class br.com.service.Administrator
  193. set 22, 2016 3:49:58 PM com.sun.jersey.api.core.ScanningResourceConfig init
  194. INFORMAÇÕES: No provider classes found.
  195. set 22, 2016 3:49:58 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
  196. INFORMAÇÕES: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 05:39 AM'
  197. set 22, 2016 3:49:59 PM org.apache.catalina.core.StandardContext reload
  198. INFORMAÇÕES: Reloading Context with name [/Admin] is completed
  199.    
  200. @GET
  201. @Path("geral")
  202. @Produces(MediaType.APPLICATION_JSON)
  203. public String getGeral(@QueryParam("callback") String callback) {
  204.  
  205.     ArrayList<DoadorGeral> doadores = new ArrayList<DoadorGeral>();
  206.  
  207.     EntityManagerFactory factory = Persistence.createEntityManagerFactory("milicia");;
  208.     EntityManager manager = null;
  209.  
  210.         try{
  211.             manager = factory.createEntityManager();
  212.  
  213.             DoadorGeral doadorGeral = new DoadorGeral();
  214.  
  215.             doador doador = manager.find(doador.class, 1);
  216.  
  217.             doadorGeral.setId((doador.getId_doador()));
  218.             doadorGeral.setNome(doador.getNome());
  219.             doadorGeral.setCidade(doador.getNome_fantasia());
  220.             doadorGeral.setData(DateUtils.getDate(doador.getData_cadastro()));
  221.             doadorGeral.setEmail(doador.getEmail());
  222.             doadorGeral.setDoacao(doador.getCpf());
  223.             doadorGeral.setVisualization(DateUtils.getHoursAndDate());
  224.  
  225.             doadores.add(doadorGeral);
  226.  
  227.         }finally{
  228.             manager.close();
  229.             factory.close();
  230.     }
  231.  
  232.     String json = new Gson().toJson(doadores);
  233.  
  234.     //return callback + "(" + json + ")";
  235.     return json;
  236. }
  237.    
  238. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  239.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  240.     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
  241.      http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  242.     version="2.0">
  243.  
  244.  <persistence-unit name="milicia">
  245.  
  246.    <!-- provedor/implementacao do JPA -->
  247.    <provider>org.hibernate.ejb.HibernatePersistence</provider>
  248.  
  249.    <!-- entidade mapeada -->
  250.    <class>br.com.model.doador</class>
  251.  
  252.    <properties>
  253.   <!-- dados da conexao -->
  254.    <property name="javax.persistence.jdbc.driver"
  255.        value="com.mysql.jdbc.Driver" />
  256.   <property name="javax.persistence.jdbc.url" value="jdbc:mysql://192.168.1.5/milicia" />
  257.   <property name="javax.persistence.jdbc.user" value="rdantas" />
  258.   <property name="javax.persistence.jdbc.password" value="l*5dsr$waFWWdf0521" />
  259.  
  260.    <!--  propriedades do hibernate -->
  261.    <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
  262.   <property name="hibernate.show_sql" value="true" />
  263.   <property name="hibernate.format_sql" value="true" />
  264.  
  265.    </properties>
  266.  </persistence-unit>
  267. </persistence>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top