Specialized Types in Entity field type

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Specialized Types in Entity field type

Foo Shyn Chung
Hi all,

I found that there are certain type are being defined as "Specialized
Types" in the fieldtype<db>.xml ..... i wonder why are they termed
'special' as the sql-type and java-type are basically almost the same.

1 example is tel-number where the sql-type is TEXT and the java-type is
String

Tried to search on the web for info but can't find any. Is there any
purpose they served? Currently i'm building an entity that has a field for
phone number, should i use tel-number or just use the long-varchar?

Thanx
FooShyn
Reply | Threaded
Open this post in threaded view
|

Re: Specialized Types in Entity field type

Bilgin Ibryam-2
Hi FooShyn,

I don't think there is anything special about these fields, just that
they are not general purpose fields as name/description, but more
restrictive. If they fit your needs (sql-type/java-type) feel safe to
use them

Bilgin

On 30 January 2012 09:24, Foo Shyn Chung <[hidden email]> wrote:

> Hi all,
>
> I found that there are certain type are being defined as "Specialized
> Types" in the fieldtype<db>.xml ..... i wonder why are they termed
> 'special' as the sql-type and java-type are basically almost the same.
>
> 1 example is tel-number where the sql-type is TEXT and the java-type is
> String
>
> Tried to search on the web for info but can't find any. Is there any
> purpose they served? Currently i'm building an entity that has a field for
> phone number, should i use tel-number or just use the long-varchar?
>
> Thanx
> FooShyn