It's a formula field (e.g.):

/**
* @hibernate.property 
*       formula="QUESTION_NUM"
*/

whose value is set as a result of being a child of a List association:

* @hibernate.list-index 
*       column="QUESTION_NUM" 
*       base="1"

The @hibernate.property tag does have an "access" parameter which can be set
to "field":

http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED]

I'll play with it and report back my findings.

Thanks,
Gary


Bryan Noll-2 wrote:
> 
> I would give yourself the setter.  I believe Hibernate expects them to 
> be there out of the box.  Plus, how else do you plan on modifying your 
> instance variables without one?
> 
> Matt Raible wrote:
>> I don't know - I've never tried to use XDoclet with field-level
>> access. AFAIK, it's not possible to use XDoclet and annotate fields,
>> but I could be wrong.
>>
>> Matt
>>
>> On 12/20/06, GaryW <[EMAIL PROTECTED]> wrote:
>>>
>>> When using "field" level access, do you put the @hibernate.property 
>>> tag on
>>> the field or on the getter?  Also, do you need a setter in this case 
>>> or is
>>> that optional since it's setting the field and not the property?
>>>
>>> Thanks,
>>> Gary
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Hibernate-XDoclet-question-tf2861325s2369.html#a7994967
>>>  
>>>
>>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hibernate-XDoclet-question-tf2861325s2369.html#a7998901
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to