<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>ORMLite Users Google Group</title>
  <link>http://groups.google.com/group/ormlite-user</link>
  <description>Group for users of OrmLite. If you are trying to get help with developing (porting, extending) the package, please use the ormlite-dev group. For more information about ORMLite see its homepage: http://ormlite.sourceforge.net/</description>
  <language>en</language>
  <item>
  <title>Re: How to disable Debug Message</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/1523633fa5d38b7d/71f9d58b2b1d08e9?show_docid=71f9d58b2b1d08e9</link>
  <description>
  I believe this page should be helpful: &lt;br&gt; &lt;p&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://stackoverflow.com/questions/2018263/android-logging&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;The 2nd answer says: &lt;br&gt; &lt;p&gt;	You can specify them in the file &#39;/data/local.prop&#39; as follows: &lt;br&gt; &lt;p&gt;	log.tag.MyAppTag=WARN &lt;br&gt; &lt;p&gt;So I guess that the following should work to only show ORMLite warn messages:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/1523633fa5d38b7d/71f9d58b2b1d08e9?show_docid=71f9d58b2b1d08e9</guid>
  <author>
  256....@gmail.com
  (Gray Watson)
  </author>
  <pubDate>Fri, 17 May 2013 13:33:18 UT
</pubDate>
  </item>
  <item>
  <title>Re: How to disable Debug Message</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/1523633fa5d38b7d/555dd1857be6845f?show_docid=555dd1857be6845f</link>
  <description>
  Hi, is there a way to disable the logging using the AndroidLog &lt;br&gt; implementation? &lt;br&gt; I&#39;m seeing a lot of create table log lines of the TableUtils class and I &lt;br&gt; want to remove them from my release version. &lt;br&gt; Thanks,
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/1523633fa5d38b7d/555dd1857be6845f?show_docid=555dd1857be6845f</guid>
  <author>
  pablodi...@gmail.com
  (Pablo Distéfano)
  </author>
  <pubDate>Fri, 17 May 2013 13:18:09 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/0c5bbafd443702e7?show_docid=0c5bbafd443702e7</link>
  <description>
  Hi Salil &lt;br&gt; &lt;p&gt;The problem might be with how you setup/populate your foreign collection in the first place. &lt;br&gt; Does your Reading class have a database field called device with foreign=true? &lt;br&gt; Then when you instantiate your Reading initially do you associate it with the device properly like this? &lt;br&gt; Reading theReading = new Reading();
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/0c5bbafd443702e7?show_docid=0c5bbafd443702e7</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Wed, 15 May 2013 07:33:33 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/67bb43e51e8ee3e1?show_docid=67bb43e51e8ee3e1</link>
  <description>
  Hi Salil &lt;br&gt; I understand the problem as being your inability to access the device&#39;s readings. &lt;br&gt; Perhaps the relations in your db aren&#39;t properly configured? &lt;br&gt; How did the Readings get into the db? &lt;br&gt; And when the readings were inserted into the db was the relationship between the reading and the device properly established?
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/67bb43e51e8ee3e1?show_docid=67bb43e51e8ee3e1</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Wed, 15 May 2013 10:50:29 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/d1209ebc4f751449?show_docid=d1209ebc4f751449</link>
  <description>
  Hi Moritz, &lt;br&gt; &lt;p&gt;I meant to say that devices and readings are already there in the database. &lt;br&gt; I am merely querying the device (which is successful) and the corresponding &lt;br&gt; readings through the ForeignCollection field of that device (which is not &lt;br&gt; successful). &lt;br&gt; &lt;p&gt;regards &lt;br&gt; Salil &lt;br&gt; &lt;p&gt;On Wed, May 15, 2013 at 6:31 PM, Moritz Pfeiffer
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/d1209ebc4f751449?show_docid=d1209ebc4f751449</guid>
  <author>
  rohsh...@gmail.com
  (Salil Wadnerkar)
  </author>
  <pubDate>Wed, 15 May 2013 10:35:20 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/362bacff03516314?show_docid=362bacff03516314</link>
  <description>
  Hi Salil &lt;br&gt; Readings aren&#39;t instantiated for you automatically. &lt;br&gt; Somewhere in your code you&#39;ll have to create them and associate them with the appropriate device so that the device&#39;s foreign collection gets populated properly. &lt;br&gt; Greetings &lt;br&gt; Moritz &lt;br&gt; Salil Wadnerkar &amp;lt;rohsh...@gmail.com&amp;gt; schrieb:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/362bacff03516314?show_docid=362bacff03516314</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Wed, 15 May 2013 10:31:39 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/999d736304d02587?show_docid=999d736304d02587</link>
  <description>
  Hi Moritz, &lt;br&gt; &lt;p&gt;Yes, my Reading class has a device field, defined like this: &lt;br&gt; &lt;p&gt;@DatabaseField(canBeNull = false, foreign = true, columnName = &lt;br&gt; &amp;quot;device_mac_addr&amp;quot;, foreignColumnName = &amp;quot;mac_addr&amp;quot;) &lt;br&gt; private Device device; &lt;br&gt; &lt;p&gt;I am not instantiating any readings directly. I need to get the readings &lt;br&gt; from the &#39;correct&#39; device specified by the Mac address. So, I am relying on
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/999d736304d02587?show_docid=999d736304d02587</guid>
  <author>
  rohsh...@gmail.com
  (Salil Wadnerkar)
  </author>
  <pubDate>Wed, 15 May 2013 10:08:58 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/b2fd3e3d28d82009?show_docid=b2fd3e3d28d82009</link>
  <description>
  Hi Salil &lt;br&gt; &lt;p&gt;The problem might be with how you setup/populate your foreign collection in &lt;br&gt; the first place. &lt;br&gt; Does your Reading class have a database field called device with &lt;br&gt; foreign=true? &lt;br&gt; Then when you instantiate your Reading initially do you associate it with &lt;br&gt; the device properly like this? &lt;br&gt; Reading theReading = new Reading();
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/b2fd3e3d28d82009?show_docid=b2fd3e3d28d82009</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Wed, 15 May 2013 09:02:45 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/75104317ece899b5?show_docid=75104317ece899b5</link>
  <description>
  Hi Moritz, &lt;br&gt; &lt;p&gt;The refresh does not help. Here is my modified code: &lt;br&gt; &lt;p&gt; List&amp;lt;Device&amp;gt; devices = &lt;br&gt; (List&amp;lt;Device&amp;gt;)deviceDao.queryF orEq(&amp;quot;mac_addr&amp;quot;, deviceMacAddr); &lt;br&gt; if (!devices.isEmpty()) { &lt;br&gt; Device device = devices.get(0); &lt;br&gt; deviceDao.refresh(device); // &amp;lt;- REFRESH here
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/75104317ece899b5?show_docid=75104317ece899b5</guid>
  <author>
  rohsh...@gmail.com
  (Salil Wadnerkar)
  </author>
  <pubDate>Wed, 15 May 2013 00:36:48 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/4db756e72fd28ff6?show_docid=4db756e72fd28ff6</link>
  <description>
  Hi Salil &lt;br&gt; &lt;p&gt;As far as I know it is necessary to refresh foreign collections after a query. &lt;br&gt; You could also mark your foreign collection as foreignAutoRefresh=true, but I&#39;ve never done that so I don&#39;t know exactly how that behaves. &lt;br&gt; &lt;p&gt;Greetings &lt;br&gt; Moritz
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/4db756e72fd28ff6?show_docid=4db756e72fd28ff6</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Tue, 14 May 2013 13:33:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/5d68dccc4dc9b6b7?show_docid=5d68dccc4dc9b6b7</link>
  <description>
  Hi Moritz, &lt;br&gt; &lt;p&gt;My understanding is that refresh is necessary only if I modify the &lt;br&gt; collection - via some other means than deviceDao. &lt;br&gt; If I am querying device from database, is the refresh necessary on all &lt;br&gt; foreign-collections? &lt;br&gt; Anyway, I will try out your suggestion. &lt;br&gt; &lt;p&gt;Thanks &lt;br&gt; Salil &lt;br&gt; &lt;p&gt;On Tue, May 14, 2013 at 7:05 PM, Moritz Pfeiffer
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/5d68dccc4dc9b6b7?show_docid=5d68dccc4dc9b6b7</guid>
  <author>
  rohsh...@gmail.com
  (Salil Wadnerkar)
  </author>
  <pubDate>Tue, 14 May 2013 13:30:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: Exception: Expecting there to be a clause already defined for &#39;AND&#39; operation</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/df4c2fc0bd1278b0/fc732afa729b15ea?show_docid=fc732afa729b15ea</link>
  <description>
  So the docs are pretty good about constructing such queries using the query builder. Have you RTFM? &lt;br&gt; &lt;p&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://ormlite.com/docs/building-queries&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; &lt;p&gt;In your example, you are starting with an in-line and() but there is nothing to the left of it which is throwing the exception. You could move the OR to the front:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/df4c2fc0bd1278b0/fc732afa729b15ea?show_docid=fc732afa729b15ea</guid>
  <author>
  256....@gmail.com
  (Gray Watson)
  </author>
  <pubDate>Tue, 14 May 2013 12:51:41 UT
</pubDate>
  </item>
  <item>
  <title>Re: Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/d0cce5edb65fd844?show_docid=d0cce5edb65fd844</link>
  <description>
  Hi Salil &lt;br&gt; &lt;p&gt;You need to call deviceDao.refresh(yourDevice) in order to populate your foreign collections. &lt;br&gt; &lt;p&gt;Cheers &lt;br&gt; Moritz
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/d0cce5edb65fd844?show_docid=d0cce5edb65fd844</guid>
  <author>
  pfeiffermor...@gmail.com
  (Moritz Pfeiffer)
  </author>
  <pubDate>Tue, 14 May 2013 11:05:47 UT
</pubDate>
  </item>
  <item>
  <title>Why is my ForeignCollection always empty?</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/66b836ee9a718bdb?show_docid=66b836ee9a718bdb</link>
  <description>
  Hi, &lt;br&gt; I have a table readings which has references devices table. &lt;br&gt; I define the relation in my device class like this: &lt;br&gt; @ForeignCollectionField(eager = true, foreignFieldName = &amp;quot;device&amp;quot;) # I &lt;br&gt; tried it with default - lazy first, And it did not work. &lt;br&gt; ForeignCollection&amp;lt;Reading&amp;gt; readings; &lt;br&gt; And, in reading class like this:
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/e94310b8d130f5bf/66b836ee9a718bdb?show_docid=66b836ee9a718bdb</guid>
  <author>
  rohsh...@gmail.com
  (Salil Wadnerkar)
  </author>
  <pubDate>Tue, 14 May 2013 10:58:53 UT
</pubDate>
  </item>
  <item>
  <title>Exception: Expecting there to be a clause already defined for &#39;AND&#39; operation</title>
  <link>http://groups.google.com/group/ormlite-user/browse_thread/thread/df4c2fc0bd1278b0/d37391e3f962f38d?show_docid=d37391e3f962f38d</link>
  <description>
  Hallo! &lt;br&gt; I want to express a query that looks like this in pseudo SQL: &lt;br&gt; WHERE COLUMNNAME_TYPE == type AND COLUMNNAME_CODE == code AND &lt;br&gt; (COLUMNNAME_LANGUAGE == language OR COLUMNNAME_LANGUAGE == null) &lt;br&gt; To Achive this I am building the following expression using ORM Lite: &lt;br&gt; queryBuilder.where().and().eq( DisplayableItem.COLUMNNAME_TYP E,
  </description>
  <guid isPermaLink="true">http://groups.google.com/group/ormlite-user/browse_thread/thread/df4c2fc0bd1278b0/d37391e3f962f38d?show_docid=d37391e3f962f38d</guid>
  <author>
  charlie.bab...@gmail.com
  </author>
  <pubDate>Sun, 12 May 2013 18:20:39 UT
</pubDate>
  </item>
  </channel>
</rss>
