facebook

Hibernate:How to create own Field Mappings

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

    mclu
    Member

    Hello out there!

    I am trying to use hibernate as our persintence framework in the current Projekt.
    I successfully created java file pairs from an existing oracle DB.

    1. But how can I for example replace the ID type in the 2 java files and/or in the xml file
    from Long to BigDecimal?
    2. Can I add a Generator Class (own SequenceGenerator implementation) to the wizard?

    I am using the wizard but he created a Long field for the id of my Number(28) key….

    Thx
    Markus from Germany

    #240973 Reply

    Riyad Kalla
    Member

    Markus,
    You can manually edit any of the generated files, but keep in mind any time you regenerate from the DB your changes will be overwritten. If you can hold out a bit longer, MyEclipse 4.1 will include a much more powerful mapping generator process that should allow you to customize the generation a little bit more than what we offer now.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hibernate:How to create own Field Mappings

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