Hi, there is difference since Scala generates public setters and private fields (try to decompile that class with JAD). Try to declare your field with @BeanProperty. Otherwise I dont know
J On Tue, Feb 9, 2010 at 5:03 PM, Alex <[email protected]> wrote: > Hi! > > I'm having problems while using JaQu from Scala: the following code > > class Bar() { > var open: java.lang.Double = 0. > } > val b = new Bar > b.open = 123.45 > db.insert(b) > > creates a table "BAR", but inserts no values, wheres is the is class > defined in Java > > public class Bar() { > public Double open; > } > > the code works correctly. Am I missing anything? > > Thanks! > > Cheers, > Alex > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
