- This topic has 4 replies, 3 voices, and was last updated 20 years, 3 months ago by support-jeff.
-
AuthorPosts
-
Rob MonieMemberI hope this hasn’t been mentioned but a quick search didn’t come up with anything.
I’m generating hibernate code from an existing database and have noticed that it doesn’t take into consideration the length of varchar columns when it creates the hibernate mapping file. The database has a number of composite keys with varchar types which are blowing the maximum table key size (500) due to the fact that columns that were varchar(10) are now varchar(255). This is happening with both MySQL and MS SQL although MS SQL has many more issues – probably due to the MS jdbc driver.
Am I missing something obvious here ?
While i’m here can I cast my vote for Spring integration. I’m finding that many of the features in MyEclipse can’t be used as intended because i’m wiring everything through Spring. I’d love to make full use of the Hibernate / struts tools with Spring wiring everything up.
Riyad KallaMemberSpring:
Please go vote here: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-3143.html so we can keep accurate track of what the most popular features are.I will ask the hib dev about your quesiton.
support-jeffMemberCurrently, just the JDBC defaults are used for size of variable columns. Plans are afoot for a future release to make this much more flexible (or use the actual value, I should say).
Rob MonieMemberThanks for your response Jeff. I thought that may have been the case. Is there anywhere that lists the actual capabilities of the hibernate plugin? There have been a couple of other things that have caused me confusion such as the generation of composite keys and many to many relationships. My guess is that there are some other limitations at this early stage. I’m very much looking forward to any enhancements that are coming in this area.
thanks again.
support-jeffMemberThe only docs that exist at this time are the notes on the Features page, and a user-contributed tutorial:
http://www.myeclipseide.com/ContentExpress-display-ceid-15.html
http://www.myeclipseide.com/images/tutorials/Hibernate/Hibernate.html
-
AuthorPosts