Thursday, November 20, 2014

HIBERNATE HQL AND COMPOSIT ID EXAMPLES

GO THROUGH THE BELOW LINK

HIBERNATE HQL AND COMPOSIT ID EXAMPLE

DOWNLOAD AND UN-RAR THE SOURCE FILES.

CREATE A NEW PROJECT OF HIBERNATE AND PASTE ALL SOURCE FILES INTO SRC FOLDER OF ECLIPSE IDE.

TRY TO EXECUTE THE PROGRAMS.

MODIFY SOURCE FILES ACCORDING TO YOUR NEED AND EXECUTE THE PROGRAMS.

IF YOU FIND ANY ISSUES POST THE QUERIES AS COMMENTS.

TOMORROW I WILL POST CODE OF CRITERIA.


THANKS AND REGARDS,

Vikram Y.

2 comments:

  1. sir i want to import some image into mysql through hibernate , when i run the main class , first offall my eclipse id hanged and when i restart it and run again i got this error .
    ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes

    [sql] Failed to execute:

    now mysql is not started ,

    ReplyDelete
    Replies
    1. Hi saumya,

      This may be problem with mysql db configuration. Where the default max_allowed_packet size is 25M in MySql.

      mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `tablename` at row: 1627

      You can adjust it for good within your my.cnf by setting the variable in a section for mysqldump:

      [mysqldump]
      max_allowed_packet = 500M

      Regards,

      Vikram Y.

      Delete