Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » How to influence mapping type
How to influence mapping type [message #434592] Thu, 13 September 2007 13:15 Go to next message
Bart Kummel is currently offline Bart KummelFriend
Messages: 10
Registered: July 2009
Junior Member
We use Dali to generate Entities from tables. When we do this, every
numeric database field is mapped as a BigDecimal type. Most of the numeric
fields in the database have only 7 digits, so they should fit in a normal
Integer or int. We have a lot of numeric fields, so we don't want to
manually edit all entities. Is there a way to tell Dali that it should use
Integers for database fields which fit?

We have an IBM AS/400 database and are using TopLink JPA as EJB3
implementation.

Best regards,
Bart Kummel
Re: How to influence mapping type [message #434597 is a reply to message #434592] Tue, 18 September 2007 21:03 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
I wanted newsgroup readers to know that this issue has been entered in
bugzilla (bug 203278) to track the request for this feature. Currently
there is no way to tell Dali what to use for the attribute type in
generation.

The suggested work-around is to do a standard search and replace on your
Entities after generation.

Neil

Bart Kummel wrote:

> We use Dali to generate Entities from tables. When we do this, every
> numeric database field is mapped as a BigDecimal type. Most of the numeric
> fields in the database have only 7 digits, so they should fit in a normal
> Integer or int. We have a lot of numeric fields, so we don't want to
> manually edit all entities. Is there a way to tell Dali that it should use
> Integers for database fields which fit?

> We have an IBM AS/400 database and are using TopLink JPA as EJB3
> implementation.

> Best regards,
> Bart Kummel
Re: How to influence mapping type [message #606108 is a reply to message #434592] Tue, 18 September 2007 21:03 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
I wanted newsgroup readers to know that this issue has been entered in
bugzilla (bug 203278) to track the request for this feature. Currently
there is no way to tell Dali what to use for the attribute type in
generation.

The suggested work-around is to do a standard search and replace on your
Entities after generation.

Neil

Bart Kummel wrote:

> We use Dali to generate Entities from tables. When we do this, every
> numeric database field is mapped as a BigDecimal type. Most of the numeric
> fields in the database have only 7 digits, so they should fit in a normal
> Integer or int. We have a lot of numeric fields, so we don't want to
> manually edit all entities. Is there a way to tell Dali that it should use
> Integers for database fields which fit?

> We have an IBM AS/400 database and are using TopLink JPA as EJB3
> implementation.

> Best regards,
> Bart Kummel
Previous Topic:Error Initializing JPA Model
Next Topic:Proper Dali use in EJB modules (client jars)
Goto Forum:
  


Current Time: Thu Mar 28 15:09:53 GMT 2024

Powered by FUDForum. Page generated in 0.02049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top