XML should be readable for humans. Therefore you will have to print XML output with correct indentation and line breaks.
JAXB is not doing so by default, also not using Spring.
In order to enable so called pretty printing for XML files generated using JAXB, you will have to modify the context.xml in your Java Spring project.
- Hits: 5379
In case you are dealing with large amounts of data, processed into a schema generated using Hibernate you might want to create some indexes to speed up selects.
This can be easily achieved using the @Index annotation.
Here is a short example creating an index based on only one column called system. Indexes can be created independently from primary keys, indicated by @Id.
If you want to create an index consisting of more than one column, you simply provide all needed columns in the columnList like shown in below example.
- Hits: 655