• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stripes with Stripernate

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm curious if anyone has any experience using Stripes with Stripernate?

My company just started using these technologies and us developers are in the process of getting used to this framework. We're specifically struggling with finding examples of how the Stripernate API works for even the simple stuff.

For example, I'm currently having trouble doing the Stripernate equivilant to "Select x, y FROM table" and displaying this result on a jsp.

Any thoughts or comments about Stripes and Stripernate are welcome.

Thanks,
Richard
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've got quite a bit of experience using it. (I wrote it.

Stripernate is (mostly) just an easy way to connect Stripes and Hibernate. It provides type converters and formatters so that Stripes can easily manage Hibernate entities.

With regard to your question about queries, generally what you'll do is create a public method that starts with "get" and has no parameters in your Stripes ActionBean. This method will perform the query and return the result as a list. If your method was named "getEmployees" then inside of your JSP you'd use ${actionBean.employees} as the items parameter of a forEach loop.
 
Richard Parker
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well what do you know - the author of Stripernate answered my post!
Sorry my reply to this comes so late...

Yes, my company is using Stripes with Stripernate and Hibernate. I've learned quite a bit from my first post and I must say - my coworkers and I really like Stripernate. For some reason we were having issues getting Hibernate to work properly - it was confusing, but with Stripernate it was really easy.

The only "snafoo" we were having is trying to get a table mapping from a foreign key in one table to a foreign key in another table. Nothing we tried seemed to work, so we just did a straight up query - problem solved. (but I think that's more of a Hibernate thing).

One thing we could have really used though, is more examples. We were all new to Stripes/Stripernate and Hibernate - so for the first few weeks it was all a matter of trial and error.

Another fuzzy area was trying to figure out what was a Hibernate thing and what was a Stripernate thing. I'm still not totally clear on all that - but hey, my application is about to enter "beta" phase and it works like a charm!



Thanks,
Richard

P.S. If you need any help or testing done for future versions or products - I would be more that happy to lend a hand if you need it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic