facebook

Customizing Hibernate Templates

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #248702 Reply

    Hi,

    Using MyEclipse 4.1.0 I’m trying to customize the file .\MyEclipse\eclipse\plugins\com.genuitec.eclipse.hibernate_4.1.0\templates\mappingxml.vm, to use backticks arround
    tablenames, because my tablenames are casesensitive.

    Using the Database Explorer -> Create Hibernate Mapping wizzard, none of the changes I make into the above file end up into the generated .hbm.xml file, not even normal characters.

    Here’s the line I’ve changed in the mappingxml.vm file with the backticks arround the tablename:

    <class name=”$!{mappedObject.ClassName}” table=”`$!{mappedObject.TableName}`“>

    Do I have to reload something ?
    Any clues?

    Thanks,
    Joost

    #248749 Reply

    Riyad Kalla
    Member

    I’ll ask the developers, hang tight.

    #248758 Reply

    Brian Fernandes
    Moderator

    Joost,

    The changes you made will not be picked up.
    Please see the last post in this thread for information on how to change the templates: https://www.genuitec.com/forums/topic/mapping-with-catalog-attribute/#post-245713

    Let us know if you require further assistance.
    Best,
    Brian.

    #248766 Reply

    Haris Peco
    Member

    Joost,

    You can download 4.1.1 and choose clasname for table in wizard.
    Except this 4.1.1 have a lot enhancements and bug fix

    Best

    #248816 Reply

    Thanks a lot!

    It seems that 4.1.1 together with the above link about custom templates did most of the trick.
    I immediately dropped the case sensitive tablenames, which I used to generate my classnames correctly.

    Joost

    #248817 Reply

    Brian Fernandes
    Moderator

    Joost,

    Glad you got going. Thank you for reporting back.
    We will add more support for changes like this in upcoming releases.

    Best,
    Brian.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Customizing Hibernate Templates

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