Database Trouble

Discussion in 'Plugin Development' started by beastman3226, Jul 20, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    beastman3226

    I'm trying to store one of my Requisition objects inside a database. However, I'm not completely sure if I can retrieve it as a Requisition object (or store it). Connections are fine, just need to be able to store the requisition as one of the obects I created.
     
  2. Offline

    CubieX

    Can you explain that a bit more?
    What is your "requisition object" you want to store in a DB?
     
  3. Offline

    beastman3226

    CubieX A requisition object holds information about an item requisition. It holds player names and ItemStack[] and other boring things however, I don't feel like splitting the table out into all of the Requisition object's parts so I was wondering if I could store the actual object.
     
  4. Offline

    CubieX

    Only chance I see to do this, is to serialize the object and then save it as string or as binary datatype in the DB.
    But perharps someone has a better idea, as I usually do not store whole objects in a DB.
     
Thread Status:
Not open for further replies.

Share This Page