-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: middlegen => hibernate
PostPosted: Tue May 18, 2004 11:49 am 
Newbie

Joined: Thu Apr 29, 2004 11:40 am
Posts: 7
Hi,

I have a few problems when generating the hbm files and pojo's with middlegen, hbm2java and importing them in hibernate.

First and foremost:
- How do you generate or map something of type Blob (MySQL db)
using the task and gui for middlegen?

With all the proposed types in the GUI it just gives me at runtime
in hibernate a message of the following type:

Could not interpret property type: {selected type}

I had to manually update my hbm to have as type 'blob', which is
not what I intended to have: a round-trip (model db extra's, run
build script with middlegen/hbm2java/compile).

- I also have a few m:n tables in a database, and each table has a
prefix (t_...). Now, middlegen, or cglib or whatever makes of my
foreign keys things like 'tPublicAppearance' when that field points
to 't_public_appearance'.

All is well until I want to include it into hibernate's sessionfactory at
runtime. All of the sudden hibernate complains that there is no
setter (and getter?) for the property tPublicAppearance, while there
is indeed a setter in the generated pojo called setTPublicAppearance.

Is there something I'm doing wrong or assuming wrong? (like: round
trip my ass, you have to always modify manually your hbm files because
middlegen and hibernate do not play nice with each other on other things
then trivial Long->Long and String->String mappings).

Pls help, because I've spent the last 24hrs 18hrs on narrowing this bug
down.

thnx,
Dimitri Smits[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 9:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Try the latest CVS version. There has been a few enhancements that might help with your issues.

Please note it is open source so make the changes that you suite your situation. I am not getting paid to work on it and you are not paying to use it or get access to it. So rather than complain, how about helping or don't use it. I do get a little grumpy when people are rude like you have been. Having said that, I will he happy if you provide assistence and (decent) patches. If you require professional help or training then that can be arranged.


Top
 Profile  
 
 Post subject: middlegen => hibernate
PostPosted: Wed May 19, 2004 5:58 am 
Newbie

Joined: Thu Apr 29, 2004 11:40 am
Posts: 7
Hi David,

sorry if I seemed blunt or rude. I should have rephrased a few things
better. Even if it is no excuse, but severe sleep deprivation and frustration
on not getting it done can do that for you.

As for the actual complaints. I have worked around them and finally went
to bed. :-) (now I just need to stay clear of middlegen or update the
hbm files manually).

with a deadline in a few weeks and having lost all this time, I do not
think I can find the time to sleep, let alone dig into the inner workings
of the hibernate/middlegen code.

As soon as I can free up some time and still live healthy (with some
hours of sleep a week :-)), I will try to help out.

kind regards and deep regrets if I offended you,
Dimitri Smits
aka gongo


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 19, 2004 8:22 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I do understand the pressures that occur when deadlines sneak up on you. I hope your project moves along well for you (and you get some sleep in the process). I am happy to receive improvement suggestions as Middlegen is improving all the time. I look forward to any contributions you can manage within your tight schedule.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.