Why is it, that you have to take at least 2 heavy frameworks (Spring and Hibernate), a scripting addition to Java (Groovy) and build another layer on top of it to achieve a fraction of RoRs functionality? At least, i seems to look nice… a lot of xml configuration madness less, nice urls and so […]
Someone must be hit really hard with some curly braces when he implemented the following behaviour: public class Braindead { public static void main(String[] args) { Integer i1 = 10; Integer i2 = 10; Integer i3 = 128; Integer i4 = 128; compare(i1, i2); compare(20, 20); compare(i3, i4); } public static void […]
Oracle Spatial Datatype JGeometry from the spatial api (which can be found here) can easily be used with hibernate through a custom dialect and a custom type that delegates to an instance from oracle sdo api. Everything that is needed is here: Mapping Spatial Oracle type SDO_GEOMETRY to JGeometry The only quirk with this solution […]
Manchmal ist es praktisch, wenn eine JComboBox keinen Scrollbalken mehr hat. Ist bei extrem vielen Einträgen natürlich nicht sinnvoll, aber bei einer überschaubar großen Zahl schon: iimport javax.swing.JComboBox; public class Blah { public void blub() { final JComboBox combo = new JComboBox(); combo.setMaximumRowCount(combo.getModel().getSize()); } }iimport javax.swing.JComboBox; public class Blah { public void blub() { […]