-->
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.  [ 2 posts ] 
Author Message
 Post subject: SchemaExport and formula properties
PostPosted: Fri Feb 15, 2008 5:03 am 
Regular
Regular

Joined: Fri May 05, 2006 11:54 am
Posts: 51
Hi,

I am using SchemaExport to generate my db.

I have a problem where on one class I have 4 fields with formla attributes set.

For example:

Code:
<property column="planleadercount" type="Int32" name="PlanLeaderCount" not-null="false" formula="(SELECT count(cc.uid) FROM calltreecontacts cc INNER JOIN CallTrees ct ON cc.calltreeuid = ct.Uid WHERE cc.contactUid = Uid and cc.calltreecontactroleid = 1 and ct.deleted = 'false')"/>


The problem is that the SchemaExport tool will not generate these columns if I have the formula attributes present.

If I remove the attributes SchemaExport generates the columns.

Is this a known bug?

Cheers

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 18, 2008 1:49 am 
Regular
Regular

Joined: Tue Dec 25, 2007 3:41 pm
Posts: 57
Location: Argentina
Hi,

Formula tag, is a calcuble column, but doesn't exists at database.
No column will be generated.

The query run on the fly when you get the values of the object.

Best regards.

_________________
Dario Quintana


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.