facebook

Custom type mapping

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

    sumankg
    Member

    I am using the hibernate features in the eclipse 3.0 database explorer to generate hibernate mappings from my postgres 8.0 database. My boolean fields within postgres always get mapped to java.lang.Byte. I want to change it so that my boolean field in postgres gets mapped to a java boolean type.

    Which files can I customize to achieve this. Thanks.

    #224555 Reply

    support-jeff
    Member

    Currently, you cannot change this behavior. Work is being done on the mapping tools that will allow this in the near future (end of March timeframe AFAIK). If you need to adjust the type mappings, just modify the mapping file and the abstract entity file – but be aware that re-generating mappings will drop your changes if you ever do so. Another workaround is to provide custom methods in the generated subclass which only gets generated once that transform the java.lang.Byte back into a boolean.

    #233889 Reply

    Michal Kuna
    Member

    I have the same problem. boolean mapped as byte. I have downloaded the recent version of myeclipse, but nothing appears to be changed. Could you please tell me when this bug gets fixed?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Custom type mapping

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