Hello All,

I'm having a little bit of trouble setting up a Hello World example
using MySQL instead of the BerkleyDB default.  Specifically I keep
getting a com.amazon.carbonado.MalformedTypeException with a message
of"Messages: Property for primary key not found: MessageID".

My table looks like:
mysql> desc messages;
+-------------+------------------+------+-----+---------+----------------+
| Field       | Type           | Null | Key| Default | Extra          |
+-------------+------------------+------+-----+---------+----------------+
| MessageID   | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| MessageText | varchar(45)      | NO   |     | NULL    |                |
+-------------+------------------+------+-----+---------+----------------+

I have an interface called messages
<...>
@PrimaryKey("MessageID")
public interface Messages extends Storable<Messages>
{
       @Automatic
       public long getMessageID();
       public void setMessageID(long messageID);

       public String getMessageText();
       public void setMessageText(String message);
}

and in my main the throw happens at the storagefor call:
<...>
Repository repository = repositoryBuilder.build();
Storage<Messages> storable = repository.storageFor(Messages.class);

Any help, pointers or insights would be greatly appreciated,

Thank you,
Todd English

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Carbonado-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/carbonado-interest

Reply via email to