Generate Persistence Mapping - Not Ready For Prime Time

This is a discussion on Generate Persistence Mapping - Not Ready For Prime Time within the J2EE forums in Framework and Interface Programming category; It appears to me that the Hiberate facet's ability to generate persistence mappings from an existing schema is not ready for prime time. I've been trying to use it to generate Hibernate .hbm.xml files for a schema consisting of 50-100 tables, going one table at a time. I've been getting Hibernate validation errors that won't go away, broken HQL, and some tables that simply lock up IntelliJ and force me to kill the process and start again. All these do is produce an empty .java source file and an .hbm.xml mapping with a childless root tag. I'm six tables into ...

Go Back   Application Development Forum > Framework and Interface Programming > J2EE

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-06-2007, 03:16 PM
Michael O. Duffy
Guest
 
Default Generate Persistence Mapping - Not Ready For Prime Time

It appears to me that the Hiberate facet's ability to generate persistence mappings from an existing schema is not ready for prime time. I've been trying to use it to generate Hibernate .hbm.xml files for a schema consisting of 50-100 tables, going one table at a time. I've been getting Hibernate validation errors that won't go away, broken HQL, and some tables that simply lock up IntelliJ and force me to kill the process and start again. All these do is produce an empty .java source file and an .hbm.xml mapping with a childless root tag.

I'm six tables into the process and headed nowhere.

I'm running IntelliJ EA build 7330 on Windows XP Pro SP2.

%
Reply With Quote
  #2  
Old 11-07-2007, 05:53 AM
Simon Knott
Guest
 
Default Re: Generate Persistence Mapping - Not Ready For Prime Time

You might want to try a more recent build, the one you're using is ancient! The most recent EAP build is 7531.
Reply With Quote
  #3  
Old 11-07-2007, 12:04 PM
Alexander Chernikov
Guest
 
Default Re: Generate Persistence Mapping - Not Ready For Prime Time

Hello Michael,

> for a schema consisting of 50-100 tables, going one table at a time.


So, even importing the single table causes problems? Can you attach a problem
table(s) definition to let us reproduce the issue? This may be an extract
from dataSources.xml or DDL code. Of course, no table data is needed.

Alexander.


Reply With Quote
  #4  
Old 11-07-2007, 08:32 PM
Michael O. Duffy
Guest
 
Default Re: Generate Persistence Mapping - Not Ready For Prime Time

> Hello Michael,
>
> > for a schema consisting of 50-100 tables, going one

> table at a time.
>
> So, even importing the single table causes problems?
> Can you attach a problem
> table(s) definition to let us reproduce the issue?
> This may be an extract
> from dataSources.xml or DDL code. Of course, no table
> data is needed.
>
> Alexander.


I don't believe that I can, because the schema belongs to my employer.

I have run into Hibernate validation problems where Hibernate would complain about invalid column types.

%
Reply With Quote
  #5  
Old 11-07-2007, 08:37 PM
Michael O. Duffy
Guest
 
Default Re: Generate Persistence Mapping - Not Ready For Prime Time

> You might want to try a more recent build, the one
> you're using is ancient! The most recent EAP build
> is 7531.


I'm using the older build a home; I just downloaded the latest build at work yesterday, but the result was the same.

%
Reply With Quote
  #6  
Old 11-08-2007, 06:29 AM
Alexander Chernikov
Guest
 
Default Re: Generate Persistence Mapping - Not Ready For Prime Time

Hello Michael,

>> Hello Michael,
>>
>>> for a schema consisting of 50-100 tables, going one
>>>

>> table at a time.
>>
>> So, even importing the single table causes problems?
>> Can you attach a problem
>> table(s) definition to let us reproduce the issue?
>> This may be an extract
>> from dataSources.xml or DDL code. Of course, no table
>> data is needed.
>> Alexander.
>>

> I don't believe that I can, because the schema belongs to my employer.
>
> I have run into Hibernate validation problems where Hibernate would
> complain about invalid column types.
>
> %
>


One known issue of such kind is http://www.jetbrains.net/jira/browse/IDEADEV-18397.
If you meet the same, you can vote for it.

Alexander.


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:35 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.