This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Atribuir permissão para um objeto para determinado usuário | |
grant my_operation on my_object to my_user; | |
my_operation: | |
execute | |
insert | |
select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSF | |
Customização de mensagens de conversão e validação | |
javax.faces.component.UIInput.CONVERSION= | |
javax.faces.component.UIInput.CONVERSION_detail= | |
javax.faces.component.UIInput.REQUIRED= | |
javax.faces.component.UIInput.REQUIRED_detail=Campo obrigatório | |
javax.faces.component.UISelectOne.INVALID= | |
javax.faces.component.UISelectOne.INVALID_detail= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Compilar TODOS os objetos | |
EXEC DBMS_UTILITY.compile_schema(schema => 'MY_SCHEMA'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Oracle | |
Listar colunas das tabelas | |
SELECT * FROM ALL_TAB_COLUMNS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSF | |
Ocultar comentários em páginas .xhtml | |
Adicionar ao web.xml. | |
<context-param> | |
<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> | |
<param-value>true</param-value> | |
</context-param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Android | |
Criar projeto Android com Maven | |
mvn archetype:generate -DarchetypeArtifactId=android-quickstart -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.4 -DgroupId=com.android -DartifactId=my-app-android -Dversion=1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.text.AttributeSet; | |
import javax.swing.text.BadLocationException; | |
import javax.swing.text.PlainDocument; | |
import javax.swing.text.SimpleAttributeSet; | |
/** | |
* | |
* @author Altieres de Matos | |
*/ | |
public class DocumentMoney extends PlainDocument { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JSF | |
Importar CSS | |
<link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/style.css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Eclipse | |
Alterar o tempo do auto complete | |
- Window > Preferences | |
- Java > Editor > Content Assist | |
Alterar o valor do campo "Auto activation delay (ms)" para o valor desejado. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JBoss | |
Configurar ports para várias instancias | |
run.bat -c MY_CONTEXT -Djboss.service.binding.set=PORTS | |
Onde MY_CONTEXT é o contexto que deseja startar e PORTS são os service binding configurados. | |
Por padrão existem 3 ports, ports-01, ports-02 e ports-03. | |
Para configurar mais basta editar o arquivo bindings-jboss-beans.xml que fica na pasta JBOSS_HOME\server\CONTEXT\conf\bindingservice.beans\META-INF (JBoss 5.1 EAP), para outras versões estão em pastas diferentes. |