Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Aditya Sehgal
    @adtyashgl_twitter
    Hi guys, while trying to do a find, SugarORM is throwing up an exception : IllegarlAccessException: Cannot access method :void <full Class Name>. <init>(). Any ideas? I have several tables up and running without any problem . This single class is giving me this issue
    mesterj
    @mesterj
    I would like to search between to date. java.util.Date is the type of stored dates. What is correct way? I tried Try.find(Try.class," dates BETWEEN ? and ?", {date1,date2})
    mesterj
    @mesterj
    I found it. date1.getTime() . :-)
    ThibautSilva
    @ThibautSilva
    I have a select request with 100+ element. it takes 2 seconds, any idea for improve time?
    mesterj
    @mesterj
    Hello Guys. I have error in 6.0 (API 23) E/Surface: getSlotFromBufferLocked stackoverflow say it is persistence problem. The db is ok, but I always got this message. After every sql. Is there some workaround?
    viswanathsandu
    @viswanathsandu
    hey, I have a question with Sugar ORM
    I've a backup file of db and wanted to restore it
    by replacing the file in databases folder, its not working
    can anyone help me with this issue?
    StevenWung
    @StevenWung
    after you restored the db file, have you restart your app? or init it again?
    @viswanathsandu
    Nguyễn Văn Tuấn Vũ
    @tuanvu89
    Hi
    As the tutorial, if i add new fields to data model, Sugar ORM will create columns to table automatically, but its not, after added new fields, the app is crash cause table has no columns name like i have updated to model.
    Can any one give me an advices?
    Do I have to make a migration?
    Nguyễn Văn Tuấn Vũ
    @tuanvu89
    okay i got this, just increase the db version number in manifest file
    Vinicius Bisognin Immich
    @vinibiso
    Hi guys!
    I'm new to SugarORM and I just have one question.
    Does sugar automatically do rever foreign key lookups?
    What I mean by that is, say I have Class A, and Class B, which has an atribute from the type A;
    Can I through my Class A Object get the set who is referencing me without an extra query?
    Don't know if you who is reading this has ever user Django, but the Django ORM does that and in this case through A object, using "a.b_set.all()" it would return me a list of all B objects who reference A;
    Sorry for the long question.
    dejiapps
    @dejiapps
    This message was deleted
    Hi Everyone,
    How do I go about deleting a table if I don’t know its id?
    The problem is that I am using Sugar ORM to store task for a todo list populated into recycler view. If I want to delete one of the tasks, I don’t know how to get the id for that particular task. I think it has something to do with viewHolder, but I have no idea what to do here, any help will be appreciated.
    tranxuanhao2001
    @tranxuanhao2001
    Hi all, I want to create record for table when install app
    Can you help me?
    Eduardo Gueiros
    @egueiros
    in what case some tables are created but not others? all models are in com.mymonster.models (and that’s what I have in AndroidManifest for DOMAIN_PACKAGE_NAME). Inside I have other packages, so com.mymonster.models.app and com.mymonster.models.message - all classes in the “app” package are created but I’m getting “no such table” for classes in the “message” package…anyone seen this before?
    Eduardo Gueiros
    @egueiros
    FYI, found the issue. duplicate colunm name. Peace.
    Kennedy Nyaga
    @isnyaga
    Is there a "beforeSave" listener on sugarOrm?
    behzad nemat morad
    @behzadnm99

    Hello Guys

    please please please Help me
    When i call every function of my item class that extended SugarRecord Class my app is crashed on that line that i called the function :((

    any idea ????? thnak u....

    Roberto Altieri
    @robertoaltieri
    Hi all. Is it possible to use Sugar ORM with jack?
    I keep getting:

    A problem occurred evaluating project ':app'.

    java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0

    Roberto Altieri
    @robertoaltieri
    I'm using version 1.5
    Hussain Khan
    @hussianisgreat_twitter

    can anyone tell me what is the problem..?? Im trying to Migrate db...and I have Followed all the steps given on the Sugar ORM official page..!!
    Error:Execution failed for task ':app:packageDebug'.

    java.io.FileNotFoundException: D:\Finja\MyApplication222\app\build\intermediates\assets\debug\sugar_upgrades (Access is denied)

    filiptdz
    @filiptdz
    hey guys! Is it possible to save images to the database using sugar? I haven't managed to do it
    cheekiat
    @cheekiat
    hey who can let me know android sugar how to group by date year?

    List<Book> mBooks = Book.findWithQuery(Book.class, "Select * from Book GROUP BY DATE_FORMAT(date, '%Y%m')");

    List<Book> mBooks = Book.findWithQuery(Book.class, "Select * from Book GROUP BY YEAR(date), MONTH(date)")

    when i run this 2 query get no such function DATE_FORMAT or YEAR

    here is my class file

    public class Book extends SugarRecord {
    String title;
    String edition;
    Date date;
    }

    Ludvianto Ovandi
    @dhinx

    fitur offset is not working at all

    public List<T> list() {
    if (arguments == null) {
    arguments = convertArgs(args);
    }

        return SugarRecord.find(record, whereClause, arguments, groupBy, orderBy, limit);
    }
    there is no parameter for offset
    last param is limit, offset ?
    nestorcito
    @nestorcito
    Hello, does anyone know why my application (which extends SugarRecord) works perfectly on an emulator in the computer but not on my phone?
    David Hernández Peña
    @davehp44_twitter
    Is it possible to load a database already created by me with sugarOrm?
    Gil Goldzweig
    @gilgoldzweig
    hey i have a problem with saving objects that have nested custom objects all the custom objects extends sugarRecord but when i look at the db their all null
    larrydalaw
    @larrydalaw
    may i know if it can connect to mysql?
    Seth Kigen
    @kigen
    Does any one have any idea why the CI-Builds are failing?
    Aaron C
    @aarobc
    Could someone demonstrate how I would set up a model with Kotlin?
    Because when I try to retrieve the data, I get nothing back
    Aaron C
    @aarobc
    found a workaround
    AxxiD
    @AxxiD
    Hello everybody
    Will this project ever get a new release?
    Nikola Eleree
    @eleree
    Hello everybody
    Will this project ever get a new release?
    AxxiD
    @AxxiD
    @eleree i hope so!
    Nikola Eleree
    @eleree
    @AxxiD me too
    Quraishi-sazid
    @Quraishi-sazid
    I can't update document with unique annotation.
    Test test=new Test();
    test.setIdentification("abc");
    test.setVar("a");
    test.setValue(4);
    test.save();
    Test test1=new Test();
    test1.setIdentification("abc");
    test1.setValue(231);
    test1.setVar("abcd");
    test1.update();
    here Identification is unique..
    Long
    @Long01395921_twitter
    Hello, I need your help. Current version of my app has been published for 1 year. Now I want to add 4 columns to 2 tables without user's data lost.