Posts

java - Unknown Mapping Entity at session.bynatural ID in Hibernate 4.3 +Spring 4 + Teneo 2.1 -

i have upgraded hibernate (3 4.3.8) , spring (3.0.6 4.0.6) , teneo (1.2 2.1) in application. every thing related db working fine apart below api session.bynaturalid(cl).using( constants.object_id, objectid).getreference(); it throws hibernate mapping exception : unknown mapping entity [classname] but @ same time, in same environment below apis working fine. 1) criteria criteria = session.createcriteria(cl).add(restrictions.eq(constants.object_id, objectid)); criteria.setcacheable(true); list<t> list = criteria.list(); if(list != null && !list.isempty()) obj = list.get(0); 2) obj = (t) session.get(classname, id); i don't understand why it's behaving this. thanks in advance!..

c# - Custom editor resets list every frame -

i trying make reorderable list in unity storing list of custom classes: using system; using unityengine; [serializable] public struct onboardingitemdata { [tooltip("the hint gameobject")] public gameobject prefab; [tooltip("the object hint highlighting")] public gameobject target; } this class in list: using system; using system.collections.generic; using unityengine; public class onboardingitemlist : monobehaviour { public list<onboardingitemdata> list = new list<onboardingitemdata>(); private void update() { debug.log("list count: " + list.count); } public void refresh() { (int i=0; < list.count; i++) { if (list[i].prefab != null) { list[i].prefab.getcomponent<onboardingitemclickhandler>().id = i; } } } public virtual void show(int id) { debug.lo...

javascript - Vue.js Axios get value from local storage (localforage) returns promise object instead of value -

i trying value localforage axios call, not working. axios.get('https://api.example.org/api/?uname=' + this.$getitem('lsuname'), { withcredentials: true, headers: {'authorization': 'bearer ' + this.$getitem('lsmytoken')} }) i'm getting 403 error in console: xhr failed loading: " https://api.example.org/api/?uname=[object%20promise] ". i have tried this.$getitem('lsuname').then(value => { return value }) , this.$getitem('lsuname').then(function (value) { return value }) same exact 403 , bad url promise @ end i able correctly return value without issue elsewhere in vue so: this.$getitem('lsuname').then(value => { console.log('uname:' + value) }) looks this.$getitem asynchronous call return promise . means have wait call finish before calling code depends on returned values of async calls. in case, use promise.all() wait of async calls return before making ...

Neo4J Rebuild C# instance from node with childs -

i'm trying find best solution "deserialize" results neo4j have nodes defines complex structure childs (no circles) structure->structureitem->structure | structureitem->structure | structure first load path node it's childs var result = _client.cypher .match("(structure:structure{id:123})") .optionalmatch($"p=(structure)-[:structureitem|structure*]->(structurechild)") .return<ienumerable<string>>("nodes(p)") .results; and each node in path i'm adding child's instance if it's not exists var structuredict = new dictionary<string, structure>(); var structureitemsdict = new dictionary<string, structureitem>(); structure result = null; foreach (var nodes in result) { structure existsstructure = null; st...

excel formula - Sumproduct with Three Criteria and -

i trying figure out how search left character in cell, 1 or 2, , search short string, ‘flow’ inside of longer string, ‘system flow’ or ‘flow control’, , if 2 criteria met, take average of numbers in corresponding rows, in column m. so, third criteria. came function below, returns 0, not correct. =sumproduct((left(k38:k44,1)=c38)*(isnumber(find(d38,l38:l44))))*m38:m44 any thoughts on wrong here? thanks! use averageifs(): =averageifs(m38:m44,k38:k44,c38 & "*",l38:l44,"*" & d38 & "*") edit, deal change of numbers , strings need adjust formula bit: =sumproduct((left(k38:k44,1)=text(c38,"@"))*(isnumber(search(d38,l38:l44)))*m38:m44)/sumproduct((left(k38:k44,1)=text(c38,"@"))*(isnumber(search(d38,l38:l44))))

javascript - jQuery detect when content is loaded -

i building ajax filter, replacing container on page. after content appended dom need foreach each block of newly appended content , height of , set each of them max height. here tricky part.when content appended images not loaded, cannot calculate accurately height of whole block. here code. $.ajax({ ... success: function(html) { $('#product-pagination-container').html(html); adjustboxheights(); //sroll products /* $('html,body').animate({ scrolltop: $('#product-pagination-container').offset().top}, 'slow'); */ }, error: function(err) { console.log(err.responsetext); } }); function adjustboxheights() { var maxheight = 0; $('.product-grid > div, .content-top .product-layout > div, .content-bottom .product-layout > div').each(function(){ $(this).height('auto'); if (maxheight < $(this).height()) {maxheight = $(this).height()} }); $('.product-gri...

osx - Setting AFP volume as working directory in R on Ubuntu 16.04 -

i have data on shared network (mac osx) folder follows: '/run/user/1000/gvfs/afp-volume:host=mac.local,user=mico%20zico,volume=shared/server/gz' r doesn't read folder @ all. there way redefine in r understandable path? gvfs-mount below m@workstation-w60:~$ gvfs-mount -l drive(0): samsung ssd 850 evo 1tb type: gproxydrive (gproxyvolumemonitorudisks2) volume(0): system type: gproxyvolume (gproxyvolumemonitorudisks2) volume(1): system-reserviert type: gproxyvolume (gproxyvolumemonitorudisks2) mount(0): system-reserviert -> file:///media/m/system-reserviert type: gproxymount (gproxyvolumemonitorudisks2) drive(1): hl-dt-st bd-re bh16ns40 type: gproxydrive (gproxyvolumemonitorudisks2) drive(2): toshiba external usb 3.0 type: gproxydrive (gproxyvolumemonitorudisks2) volume(0): external type: gproxyvolume (gproxyvolumemonitorudisks2) mount(0): external -> file:///media/m/ type: gproxymount (gproxyvolumemonitorudisks2) mount(0): shared mico zico on mac -> a...