default value of a field

Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]>
Newsgroups gmane.comp.java.keel.user
Message-ID <[email protected]>
Does the persist.default-value meta data work?  I am trying to use it in my own
code and its having problems.  I looked in app-poll's Poll.java and I see for
the "Open" field it has this meta-data: 

/**
	 * Returns the open.
     * 
     * @persist.field 
     *   name="Open" 
     *   type="timestamp" 
     *   null-allowed="false" 
     *   descrip="$pollOpenTime"
     *   db-name="PollOpen"
     * @persist.default-value 
     *   current-datetime="true"
     *
	 * @return Date Get the date this poll "opens"
	 */

But looking at the Poll-persist-system.xconf it creates, I don't see anything in
there about default-values?  I see the java code in AbstractPersistentMetaData
to handle the default-value attribute of a field, but the generated
configuration is missing the data.  Right?

Thank you, 
Nate
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.