facebook

hibernate code generation issues

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #215146 Reply

    Rob Monie
    Member

    I 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.

    #215182 Reply

    Riyad Kalla
    Member

    Spring:
    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.

    #215215 Reply

    support-jeff
    Member

    Currently, 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).

    #215219 Reply

    Rob Monie
    Member

    Thanks 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.

    #215220 Reply

    support-jeff
    Member

    The 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

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: hibernate code generation issues

You must be logged in to post in the forum log in