This is a free and a great SQLite database manager. It also manages the Android SQLite database easily.
SQLite Expert Personal
http://www.sqliteexpert.com/
terça-feira, 6 de dezembro de 2011
segunda-feira, 5 de dezembro de 2011
JBoss Envers and Temporal Databases
It can be used in need of Temporal Databases[1]... It is a great option for historic data!
Envers: Easy Entity Auditing
"The Envers project aims to enable easy auditing/versioning of persistent classes. All that you have to do is annotate your persistent class or some of its properties, that you want to audit, with @Audited. For each audited entity, a table will be created, which will hold the history of changes made to the entity. You can then retrieve and query historical data without much effort." [2]
[1] http://en.wikipedia.org/wiki/Temporal_database
[2] http://www.jboss.org/envers
Envers: Easy Entity Auditing
"The Envers project aims to enable easy auditing/versioning of persistent classes. All that you have to do is annotate your persistent class or some of its properties, that you want to audit, with @Audited. For each audited entity, a table will be created, which will hold the history of changes made to the entity. You can then retrieve and query historical data without much effort." [2]
[1] http://en.wikipedia.org/wiki/Temporal_database
[2] http://www.jboss.org/envers
Marcadores:
Hibernate,
Java,
ORM,
Temporal Databases
Hibernate - the best choice
Ok, Hibernate [1] is the best choice for design applications!
"Hibernate is best used to leverage end-to-end OR mapping. It provides a complete ORM solution, but leaves you no control over queries. Hibernate is an ideal solution for situations where you have complete control over both the application and the database design. In such cases you may modify the application to suit the database, or vice versa. In these cases you could use Hibernate to build a fully object-relational application. Hibernate is the best option for object-oriented programmers who are less familiar with SQL." [2]
[1] Hibernate Documentation
http://www.hibernate.org/docs
[2] Comparison of iBatis, Hibernate and JPA
http://www.narendranaidu.com/2008/07/comparison-of-ibatis-hibernate-and-jpa.html
"Hibernate is best used to leverage end-to-end OR mapping. It provides a complete ORM solution, but leaves you no control over queries. Hibernate is an ideal solution for situations where you have complete control over both the application and the database design. In such cases you may modify the application to suit the database, or vice versa. In these cases you could use Hibernate to build a fully object-relational application. Hibernate is the best option for object-oriented programmers who are less familiar with SQL." [2]
[1] Hibernate Documentation
http://www.hibernate.org/docs
[2] Comparison of iBatis, Hibernate and JPA
http://www.narendranaidu.com/2008/07/comparison-of-ibatis-hibernate-and-jpa.html
terça-feira, 25 de outubro de 2011
Onde cada Managed Bean entra na arquitetura MVC
Onde cada Managed Bean entra na arquitetura MVC (Model-View-Controller)
[1] mostra as diferenças entre os MBs:
É muito importante ler esse link abaixo, entendendo o o baixo acoplamento e a alta coesão entre os MBs e a utilização real do MVC e seus benefícios.
[1] http://blog.icefaces.org/blojsom/blog/default/2009/04/23/Making-distinctions-between-different-kinds-of-JSF-managed-beans/
E aproveitando...
http://www.rponte.com.br/2009/08/27/managed-beans-nao-complique-simplifique/
[1] mostra as diferenças entre os MBs:
- Model Managed Bean
- Backing Managed Bean
- Controller Managed Bean
- Support Managed Bean
- Utility Managed Bean
É muito importante ler esse link abaixo, entendendo o o baixo acoplamento e a alta coesão entre os MBs e a utilização real do MVC e seus benefícios.
[1] http://blog.icefaces.org/blojsom/blog/default/2009/04/23/Making-distinctions-between-different-kinds-of-JSF-managed-beans/
E aproveitando...
http://www.rponte.com.br/2009/08/27/managed-beans-nao-complique-simplifique/
Marcadores:
Acoplamento,
Coesão,
Design Patterns,
JSF 1.2,
JSF 2.0,
MVC,
Padrões
segunda-feira, 24 de outubro de 2011
Meditações Guiadas de Jack Kornfield
Excelente material em MP3!
http://www.sociedadebudistadobrasil.org/sala-de-estudos/meditacoes-guiadas/
sexta-feira, 21 de outubro de 2011
Baixo Acoplamento e Alta Coesão - Regras que valem ouro!
Use e abuse dos melhores tipos de acoplamento e coesão!
Acoplamento
- Inter-dependência entre módulos
- Tipos (do melhor ao pior)
- Mensagem: interface pública para troca de mensagens
- Dados: módulos compartilham dados via parâmetros
- Selo: dados estruturados subutilizados
- Controle: módulo envia comandos para o outro
- Externo: compartilham um formato de dados externo, protocolo de comunicação ou interface de dispositivo
- Comum: dados globais
- Conteúdo: um módulo depende da funcionalidade interna do outro, um muda o outro tem que mudar também
Coesão
- Princípio de ouro para ser mantido no projeto
- Tipos (do melhor ao pior)
- Funcional: única tarefa
- Sequencial: saída de um módulo é entrada em outro módulo
- De comunicação: operações unidas sobre os dados
- Procedural: procedimentos de algoritmos
- Temporal: dependência de tempo
- Lógico: depende de variáveis de condições lógicas
- Coincidente/acidental: nada
Referências
http://c2.com/cgi/wiki?CouplingAndCohesion
Marcadores:
Acoplamento,
Coesão,
Desenvolvimento de Sistemas,
Engenharia de Software
domingo, 16 de outubro de 2011
"Primefaces is not defined" error
At starting with Primefaces, the error "Primefaces is not defined" happens. It's because Primefaces needs h:head JSF tag in the page.
To fix, just do that:
http://www.primefaces.org/faq.html
To fix, just do that:
- How can I fix the "PrimeFaces not found" javascript error?
Make sure to have h:head tag in your page.
http://www.primefaces.org/faq.html
Using Facelets and CSS
Start rightly:
Facelets fits JSF like a glove
http://www.ibm.com/developerworks/java/library/j-facelets/
30 CSS Best Practices for Beginners
http://net.tutsplus.com/tutorials/html-css-techniques/30-css-best-practices-for-beginners/
Facelets fits JSF like a glove
http://www.ibm.com/developerworks/java/library/j-facelets/
30 CSS Best Practices for Beginners
http://net.tutsplus.com/tutorials/html-css-techniques/30-css-best-practices-for-beginners/
sábado, 15 de outubro de 2011
Configurando Tomcat 7 no Eclipse Indigo
- Baixe o Tomcat em
- Em Server Locations
- Selecione a opção para que o Eclipse controle o Tomcat
- "Use Tomcat instalattion (takes control of Tomcat installation)
- Altere o Deploy Path para o diretório webapps dentro da instalação do Tomcat, assim o projeto vai corretamente para a pasta de auto deploy do Tomcat.
- Caso seu projeto seja em JSF, garanta que os diretórios estejam de acordo
- Pasta do Projeto
- WEB-INF
- lib
- (jars e afins da aplicação)
- faces-config.xml
- web.xml
- index.jsp (na pasta raiz)
sexta-feira, 14 de outubro de 2011
Configurando as Tags JSF 2.0 em arquivos .XHTML com Facelets no Eclipse
Ao utilizar .JSPX e .XHTML para JSF 2.0, o Facelets obriga que seja utilizado o .XHTML [1], porém o Eclipse não completa as Tags JSF no .XHTML. Mesmo com a tentativa em [2], configurando no Eclipse que .XHTML deve informar as Tags JSF, não deu certo. Um bug no Eclipse foi aberto para isso [3], e num comentário havia uma solução [4]. E finalmente consegui utilizar as Tags JSF em arquivos XHTML! Utilizei o Eclipse Indigo 3.7.1.
Steps overview: [4]
[...]
2) Create a Dynamic Web Project. Apply the JSF 2.0 facet.
3) Create a XHTML page. Open it in the Web Page Editor (optional)
4) Use content assist to add the namespace to the JSF 2.0 libs. See attachment,
CA-Namespace.png
5) Use content assist to add a JSF tag.[...]
[1] Facelets Tag Completion in Eclipsehttp://www.mojavelinux.com/blog/archives/2006/12/facelets_tag_completion_in_eclipse/
[2] Eclipse Galileo - JSF Content Assist for xhtml files
http://www-02.imixs.com/roller/ralphsjavablog/entry/eclipse_galileo_jsf_content_assist
[3] Bug 314098 - JSF Content Assist for xhtml files
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314098
[4] Bug 314098 - JSF Content Assist for xhtml files - Comment 4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314098#c4
Marcadores:
Code Completion,
Eclipse,
Java,
JSF 2.0,
Taglib
Assinar:
Postagens (Atom)