Specifying a datatype for foreign id fields

10 views
Skip to first unread message

mifri...@gmail.com

unread,
Mar 4, 2017, 2:16:32 PM3/4/17
to ORMLite Users
Sometimes I would like to specify datatypes for foreign id fields. For example, all my id fields are 64 bit longs. But sometimes, I would like to have foreign id fields which are only 32 bit without changing the id fields itself for saving space. Using datatype=Integer doesn't work because this throws a messages about only possible on Integer types...

Yes, it is a bit dirty, but this would be the best solution for my specific problem ;-)
Reply all
Reply to author
Forward
0 new messages