This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Carro { | |
// ... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -J-Xss256k -d -e "require 'java'; require 'servlet-api-2.5.jar'; module A; include Java::JavaxServletHttp::HttpServletResponse; end" | |
/Users/fck/Development/Ruby/jruby-1.1.4/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/module.rb:16 warning: instance variable @java_aliases not initialized | |
/Users/fck/Development/Ruby/jruby-1.1.4/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/module.rb:16 warning: instance variable @java_aliases not initialized | |
/Users/fck/Development/Ruby/jruby-1.1.4/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/module.rb:16 warning: instance variable @java_aliases not initialized | |
/Users/fck/Development/Ruby/jruby-1.1.4/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/module.rb:16 warning: instance variable @java_aliases not initialized | |
Error: Your application used more stack memory than the safety cap of 256k. | |
Specify -J-Xss####k to increase it (#### = cap size in KB). | |
Exception trace follows: | |
java.lang.StackOverflowError | |
at java.util.concurrent.locks.Reent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AnnotationConfiguration cfg = new AnnotationConfiguration(); | |
cfg.configure(); | |
cfg.addAnnotatedClass(Produto.class); | |
cfg.addAnnotatedClass(Categoria.class); | |
// ... | |
SessionFactory factory = cfg.buildSessionFactory(); | |
Session session = factory.openSession(); | |
// ... |
NewerOlder