What is it ? The StAX, which has a very similar operation with SAX. It is also based on events, … More
Author: camilamacedo86
[JAVA] – How to use SAX to parse a XML file?
First you need implement the class where you will specify the attributes of your file. Look the code below. public … More
[JAVA] – How to validate a XML ?
For do this is easy : DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(true); factory.setNamespaceAware(true); factory.setAttribute(“http://java.sun.com/xml/jaxp/properties/schemaLanguage”, “http://www.w3.org/2001/XMLSchema”);
[JAVA] – How to read a XML file ?
Below is an example for do it. DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(“src/products.xml”); NodeList … More
[Hibernate] – How to use Hibernate Statistics ?
Hibernate Statistics is a Hibernate class where we can back several methods that can help us to find bottlenecks. How … More
[Hibernate] – How to work with cache ?
What is cache ? To improve performance, we could then put the results of searches in some intermediate place in … More
[Hibernate] – How to work with locks ?
Problem : Imagine the situation where in a store, you need to publish daily promotions and perform editing products. … More
[Architecture] – Microservices by Martin Fowler
Below is a speech by Martin Fowler explain it : His article : http://martinfowler.com/articles/microservices.html
[Hibernate] – Increase performance using @DynamicUpdate or @DynamicInsert
When you change only the value of a single attribute of an object we know that Hibernate makes an update … More
[JAVA] – CDI with beans and interceptors by examples
What is it ? The “Context and Dependency Injection for the Java EE platform” (CDI) is a specification that says … More