Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Aplicação não carrega dados do banco após inicialização do windows

Pessoal,

toda vez que eu reinicializo o windows e vou subir o tomcat, as páginas não trazem os dados que estão no banco de dados.

Eu notei que só após dar um "Clean" no tomcat e no projeto é que funciona como esperado.

Por que isso está acontecendo?

Agradeço antecipadamente!

Wiler

2 respostas

Oi Wiler, apenas com essas informações não conseguimos ajudar, infelizmente. Se depois de um clean funciona, parece ser mais algum problema de configuração do que outra coisa... Acontece algum erro?

solução!

Alberto,

infelizmente não aparece nenhum erro. Por exemplo, acabei de inicializar o tomcat e as mensagens do log foram:

05/06/2017 07:45:43 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:livraria' did not find a matching property.
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/7.0.78
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          May 10 2017 15:02:19 UTC
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         7.0.78.0
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 7
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.1
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\jre
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.6.0_43-b01
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Sun Microsystems Inc.
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:49855
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0\wtpwebapps
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0\endorsed
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
05/06/2017 07:45:43 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Duser.home=C:\Users\wiler.coelho
05/06/2017 07:45:43 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\jre\bin;C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\oracle\product\11.2.0\client_64;C:\oracle\product\11.2.0\client_64\bin;C:\oracle\product\11.2.0\client_32;C:\oracle\product\11.2.0\client_32\bin;C:\orant\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\orant\jdk\bin;C:\Program Files\SafeNet\Authentication\SAC\x32;C:\Program Files\SafeNet\Authentication\SAC\x64;C:\Program Files (x86)\PuTTY\;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\AmbienteDesenvolvimentoPJeCSJT\pje\eclipse-jee-kepler-R-win32-x86_64-CSJT;;.
05/06/2017 07:45:43 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
05/06/2017 07:45:43 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
05/06/2017 07:45:43 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 506 ms
05/06/2017 07:45:43 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
05/06/2017 07:45:43 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
05/06/2017 07:45:44 org.apache.catalina.startup.TldConfig execute
INFO: 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.
05/06/2017 07:45:44 org.apache.tomcat.websocket.server.WsSci onStartup
INFO: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
05/06/2017 07:45:44 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Inicializando Mojarra 2.1.14 ( 20121023-1153) para o contexto '/livraria'
05/06/2017 07:45:45 com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: Anotações PostConstruct/PreDestroy presentes.  Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
05/06/2017 07:45:45 org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 4.3.0.Final
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\docs
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\docs has finished in 41 ms
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\manager
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\manager has finished in 56 ms
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\ROOT
05/06/2017 07:45:45 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\ROOT has finished in 40 ms
05/06/2017 07:45:45 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
05/06/2017 07:45:45 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
05/06/2017 07:45:45 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1926 ms

Quando eu abro uma página no navegador, só é carregado o conteúdo HTML, mas nenhum dado é carregado, como se o banco estivesse vazio. Agora eu fui no menu Project => Clean, e após reinicializar o servidor, deu certo. As mensagens no console agora são:

05/06/2017 07:48:02 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:livraria' did not find a matching property.
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/7.0.78
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          May 10 2017 15:02:19 UTC
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         7.0.78.0
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Windows 7
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            6.1
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\jre
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.6.0_43-b01
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Sun Microsystems Inc.
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:49976
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0\wtpwebapps
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: 7.0\endorsed
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
05/06/2017 07:48:02 org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Duser.home=C:\Users\wiler.coelho
05/06/2017 07:48:02 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\AmbienteDesenvolvimentoPJeCSJT\pje\jdk_1.6-b43\jre\bin;C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\oracle\product\11.2.0\client_64;C:\oracle\product\11.2.0\client_64\bin;C:\oracle\product\11.2.0\client_32;C:\oracle\product\11.2.0\client_32\bin;C:\orant\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\orant\jdk\bin;C:\Program Files\SafeNet\Authentication\SAC\x32;C:\Program Files\SafeNet\Authentication\SAC\x64;C:\Program Files (x86)\PuTTY\;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\AmbienteDesenvolvimentoPJeCSJT\pje\eclipse-jee-kepler-R-win32-x86_64-CSJT;;.
05/06/2017 07:48:03 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
05/06/2017 07:48:03 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
05/06/2017 07:48:03 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 475 ms
05/06/2017 07:48:03 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
05/06/2017 07:48:03 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
05/06/2017 07:48:03 org.apache.catalina.startup.TldConfig execute
INFO: 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.
05/06/2017 07:48:03 org.apache.tomcat.websocket.server.WsSci onStartup
INFO: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
05/06/2017 07:48:04 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Inicializando Mojarra 2.1.14 ( 20121023-1153) para o contexto '/livraria'
05/06/2017 07:48:04 com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: Anotações PostConstruct/PreDestroy presentes.  Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
05/06/2017 07:48:04 org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 4.3.0.Final
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\docs
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\docs has finished in 41 ms
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\manager
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\manager has finished in 58 ms
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\ROOT
05/06/2017 07:48:04 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\AmbienteDesenvolvimentoPJeCSJT\pje\Tomcat 7.0\webapps\ROOT has finished in 37 ms
05/06/2017 07:48:04 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
05/06/2017 07:48:04 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
05/06/2017 07:48:04 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1926 ms
05/06/2017 07:48:11 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
05/06/2017 07:48:11 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.8.Final}
05/06/2017 07:48:11 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
05/06/2017 07:48:11 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
05/06/2017 07:48:11 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
05/06/2017 07:48:11 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
05/06/2017 07:48:11 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: true
05/06/2017 07:48:11 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost/livrariadb]
05/06/2017 07:48:11 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user=root, autocommit=true, release_mode=auto}
05/06/2017 07:48:12 org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
05/06/2017 07:48:12 org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
05/06/2017 07:48:12 org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000228: Running hbm2ddl schema update
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000102: Fetching database metadata
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000396: Updating schema
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000261: Table found: livrariadb.autor
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000037: Columns: [id, nome]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000108: Foreign keys: []
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000126: Indexes: [primary]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000261: Table found: livrariadb.livro
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000037: Columns: [id, titulo, preco, isbn, datalancamento]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000108: Foreign keys: []
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000126: Indexes: [primary]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000261: Table found: livrariadb.livro_autor
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000037: Columns: [autores_id, livro_id]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000108: Foreign keys: [fk9590997afa17418, fk9590997ad70c7e4a]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.TableMetadata <init>
INFO: HHH000126: Indexes: [fk9590997afa17418, fk9590997ad70c7e4a]
05/06/2017 07:48:12 org.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: HHH000232: Schema update complete
Hibernate: select autor0_.id as id1_, autor0_.nome as nome1_ from Autor autor0_
Hibernate: select livro0_.id as id0_, livro0_.dataLancamento as dataLanc2_0_, livro0_.isbn as isbn0_, livro0_.preco as preco0_, livro0_.titulo as titulo0_ from Livro livro0_
Hibernate: select livro0_.id as id0_, livro0_.dataLancamento as dataLanc2_0_, livro0_.isbn as isbn0_, livro0_.preco as preco0_, livro0_.titulo as titulo0_ from Livro livro0_
Hibernate: select livro0_.id as id0_, livro0_.dataLancamento as dataLanc2_0_, livro0_.isbn as isbn0_, livro0_.preco as preco0_, livro0_.titulo as titulo0_ from Livro livro0_