How to store coordinates in a database
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-06-11T09:46:15Z
Indexed on
2010/06/11
9:53 UTC
Read the original article
Hit count: 155
mysql
Hello all!
I have a Flex GUI where I have to place quadrate elements. The position of these elements need to be stored into a database. So I can create two integer fields in the db table x and y. Also I need an angle, because the user can rotate these elements, so I can also make a int (int is okay, I do not need a double value therefore).
As a ORM, I use Hibernate. But the question is, if creating three integer fields is the best way to handle this.
Perhaps someone can tell me if this will be okay or if there are better ways?
Thanks a lot in advance & Best Regards.
© Stack Overflow or respective owner