tag:blogger.com,1999:blog-4215458222833264808.post2510159187497776573..comments2023-12-29T18:16:41.025+00:00Comments on Stas's blog: Hibernate + Spring in Standalone applicationAnonymoushttp://www.blogger.com/profile/08810736345204674453noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4215458222833264808.post-51623854419286685442011-03-18T11:08:56.722+00:002011-03-18T11:08:56.722+00:00As you mentioned that using separate files for hib...As you mentioned that using separate files for hibernate is a good approach as this makes the code more easy to change and maintain .As well as easy to read.Now a days i am working on a project that need Hibernate + Spring so was reading some blogs for best conventions to be used<br /><a href="http://www.arx.com" rel="nofollow">digital signature sharepoint</a>laurenhttps://www.blogger.com/profile/06835407443449137284noreply@blogger.comtag:blogger.com,1999:blog-4215458222833264808.post-65146908306278441512010-05-27T10:57:59.638+01:002010-05-27T10:57:59.638+01:00Looks like you are comparing wrong things. Have no...Looks like you are comparing wrong things. Have no idea how Ruby works, but looks like you are using lots of "default" stuff there. <br /><br />If you do not need declarative transaction management, there is much less configuration to do with H and no Spring part. All you need is just a hibernate config with driver reference and connection string and here you go.<br /><br />Also, if you have a look, there is no stuff related to mapping there. You can use even "automatic configuration" if you want to it doesn't require any explicit mapping. Or you can use annotations. You can even avoid get/set methods, if you don't like them.<br /><br />Also, hibernate is not such an easy thing, that's very sophisticated framework, therefore configuration is not the simplest as well. Want something simpler - go for iBatis.<br /><br />I think, is not so bad, as you are trying to show :)Anonymoushttps://www.blogger.com/profile/08810736345204674453noreply@blogger.comtag:blogger.com,1999:blog-4215458222833264808.post-82118355553690731722010-05-07T16:42:22.815+01:002010-05-07T16:42:22.815+01:00Well, fck XML
If you could spend more time onself...Well, fck XML<br /><br />If you could spend more time onself-education with Ruby (at least, there are even more exiting platforms out there), you would forget this awful undebuggable xml stuff<br /><br />Dir.new('models').each do |file| require "models/#{file}" if file=~/\.rb$/ end<br /><br />DataMapper.setup(:default, ENV['DATABASE_URL'] || ENV['DATABASE_URI'] || "sqlite3://#{Dir.pwd}/db.sqlite3")<br />DataMapper.auto_upgrade!<br /><br />that's instead of annoying H mappings with g/setters<br /><br /> get '/admin/users' do<br /> check_admin_authorization<br /> <br /> users = User.all<br /> haml :'admin/users', :layout => !request.xhr?, :locals => {:users => users}<br /> end<br /><br />instead of annoying spring bean confs<br /><br />how much is that?<br />hmmm, people say almost 50% faster than hibernate+spring<br />how could that be? ruby is 10 times slower than java?<br />i wonder, too.<br />but who finally cares how fast java is? dev's time is much more expensive, even during this prolonged recession periodphil pirjhttps://www.blogger.com/profile/02249746558614777454noreply@blogger.comtag:blogger.com,1999:blog-4215458222833264808.post-37758832130357896522010-02-19T09:15:11.217+00:002010-02-19T09:15:11.217+00:00Well, that's just configuration, what did you ...Well, that's just configuration, what did you expect? But, yeah, anyway, lots of XML, more than in C(++) :)Anonymoushttps://www.blogger.com/profile/08810736345204674453noreply@blogger.comtag:blogger.com,1999:blog-4215458222833264808.post-76618862488536989722010-02-18T22:28:21.273+00:002010-02-18T22:28:21.273+00:00I always have been and still am sure that what the...I always have been and still am sure that what they call "enterprise" programming on Java is programming in XML. ;-)Александрhttps://www.blogger.com/profile/03980297457924475954noreply@blogger.com