@OrderBy
Ad esempio:
@Entity...
public class City {
private Liststreets;
......
@OneToMany(mappedBy="city")
@OrderBy("streetName")
public ListgetStreets() {
return streets;
}
}
@Entity...
public class City {
private Liststreets;
......
@OneToMany(mappedBy="city")
@OrderBy("streetName")
public ListgetStreets() {
return streets;
}
@Id
@Column(name="PARTID", primaryKey=true, nullable=false, updatable=false, insertable=false)
See this HowTo for an example.
See http://jexcelapi.sourceforge.net/
HSSF is the POI Project's pure Java implementation of the Excel '97(-2002) file format and it provides a way to read spreadsheets create, modify, read and write XLS spreadsheets.
Since it's Jakarta project, POI has a dependencies with other JARs (commons,log4j,etc...).
The name was originally an acronym for "Poor Obfuscation Implementation" (ref: Wikipedia).
See http://jakarta.apache.org/poi/
With jXLS, all you need is to create XLS template file with all required formatting, formulas etc using specific notation to indicate placement of data and then write a couple lines of code to invoke jXLS engine passing XLS template and the exported data as parameters.
See http://jxls.sourceforge.net/
You can export XLS to XML or SQL INSERT statements. xlSQL includes its own "zero-admin" mySQL database. The documentation is minimal at this time.
See http://xlsql.sourceforge.net/
See http://sourceforge.net/projects/jcom
See also this HowTo for an alternative package to access a COM package from Java.
See http://www.extentech.com/estore/product_detail.jsp?product_group_id=228
See also this HowTo for a way to create a simple XLS without any additional library.