| Autor |
Mensagem |
|
|
[url]
http://www.sun.com/training/certification/java/index.xml
[/url]
[]s
Leandro
|
 |
|
|
juzepeleteiro wrote:
Leandro BSB wrote:O MySQL é pouca coisa melhor que o MS Access, enquanto o Postgre é super profissional. Sugiro trocar.
A é? Pelo jeito você entende muito de banco de dados...
Sugiro dar um visitinha e se informar melhor antes de dar uma opinião tão forte contra um produto. http://www.mysql.com
Alias, aproveita e veja quantas pessoas estão utilizando um acess em seus negócios: http://www.mysql.com/customers/
Agora, eu só não entendo o por que não escrever: Eu prefiro o PostgreSQL, nem sei porque, mas prefiro.
Caro juzepeleteiro,
Como você muito bem frisou, esta é a minha opinião sobre o MySQL, com a qual não tenho a intenção de ofender ninguém. Se isso ocorreu, peço desculpas. Acredito que o PostgreSQL é um banco muito mais profissional que o MySQL por vários motivos, dentre os quais ressalto a facilidade de se trabalhar com ele. Para exemplificar, lhe mando as restrições, retiradas do próprio site que você disponibilizou, para se criar uma chave estrangeira:
http://mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html
Foreign keys definitions are subject to the following conditions:
Both tables must be InnoDB tables and they must not be TEMPORARY tables.
In the referencing table, there must be an index where the foreign key columns are listed as the first columns in the same order. Such an index is created on the referencing table automatically if it does not exist.
In the referenced table, there must be an index where the referenced columns are listed as the first columns in the same order.
Index prefixes on foreign key columns are not supported. One consequence of this is that BLOB and TEXT columns cannot be included in a foreign key, because indexes on those columns must always include a prefix length.
Restrições e complicações que não existem no PostgreSQL. Não estou dizendo que o PostgreSQL não tem nenhum problema, mas prefiro ele mesmo assim.
[]s
Leandro
|
 |
|
|
O MySQL é pouca coisa melhor que o MS Access, enquanto o Postgre é super profissional. Sugiro trocar.
[]s
Leandro
|
 |
|
|
Sugestões:
Eclipse
PostgreSQL
Hibernate
JSF
JUDE
[]s
Leandro
|
 |
|
|
Vou lhe dar uma sugestão: sempre que for postar alguma dúvida no fórum, poste também o código do que você já fez, pois assim fica muito mais fácil ajudar.
[]s
Leandro
|
 |
|
|
Certificação é conhecimento certificado! Sem ela, a única coisa que você tem é a sua palavra. E, como diz o ditado, quem tem boca fala o que quer.
[]s
Leandro
|
 |
|
|
|
Você configurou a variável de ambiente PATH?
|
 |
|
|
Dê uma olhada no SQL que foi gerado no log.
[]s
Leandro
|
 |
|
|
Se você estiver usando o Eclipse, basta utilizar o (shift+ctrl+o). Se não
[]s
Leandro
|
 |
|
|
Adriana,
O meu arquivo está assim:
Ele precisa estar no diretório WEB-INF/classes. Até onde eu sei, isto é o suficiente.
[]s
Leandro
|
 |
|
|
Você precisa criar e configurar o arquivo log4j.properties.
[]s
Leandro
|
 |
|
|
Tente assim:
[]s
Leandro
|
 |
|
|
Segue um exemplo utilizando SQLQuery:
A native SQL query might return a simple scalar value or a combination of scalars and entities.
Este exemplo está na página 153 da Hibernate Reference Documentation, Version: 3.0.5
Obs.: Para fazer uma consulta, não é necessário iniciar e finalizar uma transação.
[]s
Leandro
|
 |
|
|
conforme pode ser observado em
[url]
http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Session.html[/url]
não existe o método find(java.lang.String). Sugiro tulizar o método createQuery(String queryString)
[]s
Leandro
|
 |
|
|
Segue um exemplo utilizando Native SQL Query:
A native SQL query might return a simple scalar value or a combination of scalars and entities.
Este exemplo está na página 153 da Hibernate Reference Documentation Version: 3.0.5
[]s
Leandro
|
 |
|
|