All,
I’ve been furiously coding on the hibernate stuff I demoed at JRubyconf
today as I wait for my airplane and am trying to get annotations
working.
The API for the annotation configuration wants me to call an
addAnnotatedClass method and pass in the java class of the model. I’m
thinking after I call become_java! there ought be some way to get the
java
class in ruby code, but so far I have been unsuccessful. I tried
calling
JClass.for_name(“ruby.Event”) and that didn’t seem to do it, and I can’t
find a ruby method to do it either. Weirder still, I tried to
experiment
with all this in jirb but when I create a class in jirb and call
become_java! on it I get an undefined method error. All this leads me
to
believe I am missing something obvious and silly. Can someone clue me
in?
–Chris