Code Monkey home page Code Monkey logo

generic-data's People

Contributors

danjee avatar udiu avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generic-data's Issues

How Can Reach Foreing Key Related Entity

In my project I have two entities ;
InvoiceEntity( id , groupcode, company, currencytype)
CompanyEntity(id, name,code,workfield);

I generate QP as follows;

QueryParameter qp=new QueryParameter();

qp.addRestriction(new ValueRestriction("groupcode", EQ, groupcode));
qp.addRestriction(new ValueRestriction("company.code", EQ, code));

List list= service.getList(InvoiceEntity.class,qp.addLazyFieldToInitialize("currencytype").addLazyFieldToInitialize("company"));

When run the code ;
I get this error. How Can I implement "Alias" with project
org.hibernate.QueryException: could not resolve property: company.code of: edu.anatolia.InvoiceEntity

Thanks for all

It doesn't work when I follow the readme file...

It says that we can use from Maven central
<dependency> <groupId>ro.fortsoft</groupId> <artifactId>generic-data</artifactId> <version>1.9.0</version> </dependency>
but when I do so,the jar can't be downloaded to my project. I change "generic-data" to "generic-data-service",and then it works.
something wrong with me? or something wrong with the readme file?

IEQ

Add the IEQ for ignoring case

More sample Code

Dear developers,

Any help or sample code demo for generic-data project ?
If you have could you send ?

Thanks for all

ValueRestriction getList Problem

Dear developers,

I am using your framework which is very flexible and make me faster. Thanks for it;

But I couldnt implement ValueRestriction list . While calling getList method I get "The method getList(Class, QueryParameter, T) in the type GenericService is not applicable for the arguments (Class, String, List)" error

@Autowired
private GenericService service;

public List<News> findAllByFirma(Firma firma, Sube sube) {
	
	List<ValueRestriction> restrictions = new ArrayList<>();

	if(firma!=null)
		restrictions.add(new ValueRestriction("firma", QueryParameter.EQ, firma));
	
	if(sube!=null)
		restrictions.add(new ValueRestriction("sube", QueryParameter.EQ, sube));
	
	return service.getList(News.class, QueryParameter.OR_RESTRICTIONS, restrictions);

}

Where am I wrong?

Implementing Limit Clause

Dear Danjee,

I am wondering how can I implement latest N record with generic_service;

For example I have User class and it related with the company entity. I want to get latest N User as a List

Select * from Users where company_id=10 order by id desc Limit 10;

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.