Hello Kai, I will use mock again instead of mongo as the third database.
Thanks for support Mert 28 Nisan 2015 Salı 18:34:36 UTC+3 tarihinde Kai Janson yazdı: > > Hi, > > Simply put: you can't do that. > MongoDB has its own _id format. > > BossDB splits the table name off the id after the first "-" it finds; > UUIDS have several "-". > > Use it with id and the world is good again. > > --Kai > > Sent from my iPhone > > On Apr 28, 2015, at 10:32, Mert Öztürk <[email protected] <javascript:>> > wrote: > > Hello, > > I changed my model from > > -module(question_data, [Id,QData1,QData2,QData3,QData4,QData5,QData6]). > -compile(export_all). > > to the below; > > -module(question_data, > [Id::uuid(),QData1,QData2,QData3,QData4,QData5,QData6]). > -compile(export_all). > > Then i tried again to save a record to mongodb as below; > > NewQData = question_data:new(id,Data1,Data2,Data3,Data4,Data5,Data6), > {ok,SavedQData} = NewQData:save(), > > Every Data (Data1,Data2,Data3,Data4,Data5,Data6) i am trying to save are > strings. I face with the same error again: Error parsing Boss record id: > error:{badmatch,["Y39OPvJ1PrVf4"]} > And Data1 is saved to mongodb database as []. Whatever i put after id gets > the same error and saved to mongo database as []. > > Thanks > Mert > > > > > 28 Nisan 2015 Salı 13:00:22 UTC+3 tarihinde Dmitry Polyanovsky yazdı: >> >> more info about it here https://github.com/ErlyORM/boss_db#primary-keys >> >> On Tuesday, April 28, 2015 at 12:53:19 AM UTC+3, Mert Öztürk wrote: >>> >>> Hello, >>> >>> This happens when i want to save a record to mongodb. A new record is >>> created but doesnt save the value after id which is automatically generated >>> by mongodb and shows it as []. >>> Also i get the error : Error parsing Boss record id: >>> error:{badmatch,["dV52EVzNs27iOP"]} >>> Did this happen to anyone before? >>> >>> Thanks Mert >>> >> -- > You received this message because you are subscribed to the Google Groups > "ChicagoBoss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > Visit this group at http://groups.google.com/group/chicagoboss. > To view this discussion on the web visit > https://groups.google.com/d/msgid/chicagoboss/1e587a99-704f-478d-aa8c-58ea8bc175e0%40googlegroups.com > > <https://groups.google.com/d/msgid/chicagoboss/1e587a99-704f-478d-aa8c-58ea8bc175e0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "ChicagoBoss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/chicagoboss. To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/a963bb6a-9436-4140-b044-80d7aa22472d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
