hey,

sorry I'm sending this to both lists.  not sure which one is the officially active one.  if someone enlightens me, I'll stick to the right one next time....

I'm setting up some new model classes that I'd like to auto-generate a schema with.  With properties of type String, I assume it will map to "varchar", however, I want to  setup some fields as type "text" and possibly some others as "char".  I assume that to do this, I can specify the [Property(ColumnType=???)], and I've scanned through the AR-codebase to see if I can find a set of values that represent valid column-types.  Can you point me toward a list of valid types, or even better, point me to the place in the AR project code that I can review to not only get familiarized with valid column types, but also dig into the internals of how the schema is created? 

On a similar note, is there a way to specify multiple-field constraints (for instance userID, blogName - so that two diff users can use the same name, but each user can only use it once) using AR? and if so, does the CreateSchema() actually create this constraint as well?

Also, I was checking out the documentation on Enums as properties with AR, and I'd like to setup a "DataType" enum that would allow me to have a list of valid data-types (i.e. varchar, int2, int4, etc.) instead of having to store them in the database.  However, there are other properties I'd like to associate with each datatype ( i.e. canSort, canSearch, etc.).  Can this be done with an enum, or will I have to create a class that contains these properties and use a seperate enum to specify the actual datatype-names which are ref'd as another property in the class?  Or is there a better  but entirely different approach that I should take?

thx,
foltz

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
CastleProject-users mailing list
CastleProject-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to