anchor.diff:          }
         }
   <% end -%>
  -<% entity.attributes.select{|a| a.set_once? && !a.primary_key? && a.name != :DeletedAt}.each do |a| %>
  +<% entity.attributes.select{|a| a.sync? && a.set_once? && !a.primary_key? && a.name != :DeletedAt}.each do |a| %>
         {
           final String sql =
             "SELECT S.* " +
  
positive.code:         }
        }
  <% end -%>
  <% entity.attributes.select{|a| a.reference?}.each do |a| -%>
        {
          final String sql =
            "SELECT S.* " +
  
negative.code:         }
        }
  <% end -%>
  <% entity.attributes.select{|a| a.sync? && a.immutable? && !a.primary_key? && a.name != :CreatedAt}.each do |a| %>
        {
          final String sql =
            "SELECT S.* " +
  