Hi,

he unique static mapping appears no to be working in development
mode.  I have not tried to deploy yet because I want to get a simple
project working locally first.

here is the class, as simple as it gets

package info.retelny.fin.stock



import javax.persistence.*;

// import com.google.appengine.api.datastore.Key;

@Entity

@Table(name = 'inforet_fin_stock')
class Stock implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    Long id

    String symbol
    String exchange
    String name

    static constraints = {
        id( visible:false)
        symbol(unique:true, nullable:false, blank:false)
        exchange(nullable:false, blank:false, inList:['NYSE', 'AMEX',
'NASDAQ', 'OTC'])
        name(nullable:false, blank:false)

    }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to