Instruct: Given a statement, retrieve legal articles that support it
Query: 
The order of priority of a real estate statutory lien, a real estate pledge, and a mortgage is determined by that of the registration.


Article 331
(1) If there is conflict among special statutory liens against the same immovables, the order of priority follows the order set forth in the items of Article 325.
(2) If the same immovables are subject to successive sales, the order of priority of the statutory liens for the sale of the immovables among sellers follows the chronological order of the sales.
Article 339
Statutory liens registered in accordance with the provisions of the preceding two Articles may be exercised prior to mortgages..


Article 329
(1) If there are competing general statutory liens, the order of priority follows the order set forth in each item of Article 306.
(2) Ife there are competing a general statutory lien and a special statutory lien, the special statutory lien has priority over the general statutory lien;provided, however, that statutory liens on expenses for the common benefit have priority being effective against all obligees who benefit from the same..


Article 332
If there are two or more holders of statutory liens with the same priority with respect to the same object, the holders of statutory liens are paid in proportion to the amounts of their claims..


Article 295
(1) If a possessor of a thing belonging to another person has a claim that has arisen in relation to that thing, that possessor may retain that thing until that claim is satisfied;provided, however, that this does not apply if the relevant claim has not yet fallen due.
(2) The provisions of the preceding paragraph do not apply if possession commenced by means of a tortious act.
Article 303
The holder of a statutory lien has the rights to have that holder's own claim satisfied prior to other obligees out of the assets of the relevant obligor in accordance with the provisions of laws including this Act.
Article 388
If the land and a building on that land belong to the same owner, a mortgage is created with respect to that land or building, and the enforcement of that mortgage causes them to belong to different owners, it is deemed that a superficies has been created with respect to that building.In this case, the rent is fixed by the court at the request of the parties..


Article 387
(1) A registered lease may be duly asserted against mortgagees that hold mortgages registered prior to the registration of that lease if all mortgagees that hold those mortgages give their consent and those consents are registered.
(2) For a mortgagee to give the consent referred to in the preceding paragraph, the approval of the persons that hold rights for which the mortgage is the subject matter and other persons that will suffer detriment as a result of the consent of the mortgagee must be obtained..


Article 587
A loan for consumption becomes effective when a first party receives money or any other thing from a second party, having promised to return a thing of the same type, quality, and quantity.
Article 588
If any person has an obligation to pay money or deliver other thing under any arrangement, and the parties agree to regard such thing as the subject matter of a loan for consumption, it is deemed that this establishes a loan for consumption..


Article 350
The provisions of Articles 296 through 300 and those of Article 304
apply mutatis mutandis to pledges.
Article 297
(1) A holder of a right of retention may collect fruits derived from the thing retained, and appropriate the same to the satisfaction of that holder's own claim before other obligees.
(2) The fruits referred to in the preceding paragraph must be appropriated first to the payment of interest on the claim, and any remainder must be appropriated to the satisfaction of the principal..


Article 398-3
(1) A revolving mortgagee may exercise the relevant revolving mortgage up to the maximum amount with respect to all of crystallized principal as well as periodic payments including interest and compensation for loss or damage resulting from failure to perform obligations.
(2) If a claim under a negotiable instrument or check or electronically recorded monetary claim acquired from causes other than the transactions with the obligor is agreed to be treated as a claim to be secured by a revolving mortgage, and any of the following grounds exist, that revolving mortgage may be exercised only with respect to claims acquired before those grounds arose;provided, however, that even with respect to claims acquired after the grounds arose, the exercise of the revolving mortgage is not precluded as far as the claims were acquired without knowledge of those grounds:
(i) the suspension of payments by the obligor;
(ii) a petition to commence bankruptcy proceeding, the commencement of rehabilitation proceeding, the commencement of reorganization proceeding or the commencement for special liquidation with respect to the obligor; or
(iii) a petition for commencement of auction procedure in relation to a mortgaged immovables or attachment for disposition of delinquency..


Article 356
The pledgee of immovables may use and profit from the immovables that are the subject matter of a pledge in line with the way the relevant immovables are used..


Article 378
If a third party that purchases the ownership or superficies of a mortgaged immovables pays the price of the same to a mortgagee at the request of the same mortgagee, that mortgage is terminated for the benefit of that third party..


Article 304
(1) A statutory lien may also be exercised against things including monies that the obligor is to receive as a result of the sale, lease or loss of, or damage to, the subject matter of the statutory lien;provided, however, that the holder of the statutory lien must attach the same before the payment or delivery of the monies or other thing.
(2) The provisions of the preceding paragraph also apply to the consideration for real rights created by the obligor on the subject matter of the statutory lien.
Article 350
The provisions of Articles 296 through 300 and those of Article 304
apply mutatis mutandis to pledges.
Article 372
The provisions of Article 296, Article 304
and Article 351
apply mutatis mutandis to mortgages..


Article 242
The owner of immovables acquires ownership of a thing that has been attached thereto as its appurtenance;provided, however, that the rights of the other person that attached that thing by virtue of a title are not prejudiced..


Article 378
If a third party that purchases the ownership or superficies of a mortgaged immovables pays the price of the same to a mortgagee at the request of the same mortgagee, that mortgage is terminated for the benefit of that third party..


Article 601
A lease becomes effective if one of the parties promises to make a certain thing available for the other party to use and make profit, and the other party promises to pay rent for the leased thing and return the delivered thing when the contract is terminated.
Article 587
A loan for consumption becomes effective when a first party receives money or any other thing from a second party, having promised to return a thing of the same type, quality, and quantity..


Article 87
(1) If the owner of a first thing attaches a second thing that the owner owns to the first thing to serve the ordinary use of the first thing, the thing that the owner attaches is an appurtenance.
(2) An appurtenance is disposed of together with the principal thing if the principal thing is disposed of..


Article 184
If a thing is possessed through an agent, the principal orders that agent to thenceforward possess that thing on behalf of a third party, and that third party consents thereto, the third party acquires the possessory rights..


Article 518
(1) To the extent of the amount of the obligation prior to the novation, the obligee (in the case of a novation by substitution of obligee, the obligee prior to the novation) may transfer the pledge or mortgage created as the security of that obligation to the obligation in effect after the novation;provided, however, that if any third party created that security, the consent of the third party must be obtained.
(2) The transfer of the pledge or mortgage referred to in the preceding paragraph must be effected by manifesting the intention to the other party to the novation (in the case of a novation by substitution of obligee, the obligor) in advance or upon the transfer..


Article 125
If, at or after the time when it becomes possible to ratify an act, any of the following facts occur with respect to a voidable act, it is deemed that the act has been ratified;provided, however, that this does not apply if an objection is reserved:
(i) full or partial performance;
(ii) request for the performance;
(iii) novation;
(iv) provision of a security;
(v) assignment of a part of or the whole of a right acquired by the voidable act; or
(vi) compulsory execution..


Article 400
If the subject matter of a claim is the delivery of a specific thing, the obligor must retain the thing with the due care of a prudent manager, which is determined in light of the contract or other sources of claims and the common sense in the transaction, until the delivery..


Article 398-6 (1) With respect to the principal secured by a revolving mortgage, the date when the principal is to be crystallized may be specified or changed.
(2) The provisions of Article 398-4, paragraph (2) apply mutatis mutandis to the cases referred to in the preceding paragraph.
(3) The date under paragraph (1) must be within five years of the day when the date was prescribed or changed.
(4) If registration with respect to a change in the date under paragraph (1) is not effected before the old date, the principal secured is crystallized on that old date.
Article 398-4 (1) The scope of the claims to be secured by a revolving mortgage may be changed if the change is effected before the principal is crystallized. The same applies with respect to change of obligors.
(2) In order to effect the changes referred to in the preceding paragraph, it is not required that the approval of third parties including subordinated mortgagee be obtained.
(3) If the change under paragraph (1) is not registered before the principal is crystallized, it is deemed that the change was not effected.


Article 306
A person that has a claim arising from the causes set forth below has a statutory lien over the entire assets of the obligor:
(i) expenses for the common benefit;
(ii) an employer-employee relationship;
(iii) funeral expenses; or
(iv) the supply of daily necessaries.
Article 308
Statutory liens for employer-employee relationships exist with respect to salaries and other claims that arise from the employer-employee relationship between the obligor and the employee..


Article 617
(1) If the parties do not specify the term of a lease, either party may give a notice of termination at any time. In such cases, a lease as set forth in one of the following items terminates when the term prescribed in that item has passed after the day of the notice of termination:
(i)
(ii)
(iii)
(2) With respect to leases of land with harvest seasons, the notice of termination must be given after the end of that season and before the next start of cultivation.
Article 591
(1) If the parties do not define the time for return of borrowed things, the lender may demand their return, specifying a reasonable period of time.
(2) The borrower may return the borrowed thing at any time, irrespective of whether the parties have defined the time of return of the thing.
(3) If the parties defined the time of return of the borrowed thing, and the lender sustains any damage because the borrower returns the thing prior to the time of return, the lender may claim compensation therefor from the borrower..


Article 295
(1) If a possessor of a thing belonging to another person has a claim that has arisen in relation to that thing, that possessor may retain that thing until that claim is satisfied;provided, however, that this does not apply if the relevant claim has not yet fallen due.
(2) The provisions of the preceding paragraph do not apply if possession commenced by means of a tortious act.
Article 303
The holder of a statutory lien has the rights to have that holder's own claim satisfied prior to other obligees out of the assets of the relevant obligor in accordance with the provisions of laws including this Act.
Article 388
If the land and a building on that land belong to the same owner, a mortgage is created with respect to that land or building, and the enforcement of that mortgage causes them to belong to different owners, it is deemed that a superficies has been created with respect to that building.In this case, the rent is fixed by the court at the request of the parties..


Article 177
Acquisitions of, losses of and changes in real rights on immovables may not be duly asserted against any third parties, unless the same are registered pursuant to the applicable provisions of the Real Property Registration Act (Act No. 123 of 2004) and other laws regarding registration..


Article 196
(1) If a possessor returns a thing in the possession thereof, the possessor may have the person recovering the thing reimburse the possessor for the costs the possessor has paid for its preservation and other necessary expenses;provided, however, that if the possessor has acquired fruits, ordinary and necessary expenses are borne by the possessor.
(2) With respect to the costs paid for by a possessor to improve the thing in the possession thereof and other beneficial expenses, the possessor may have the person recovering the thing reimburse the possessor for either the costs the possessor has paid or the amount of the increased value, whichever the person recovering the thing chooses, but only if there is a current increase in value;provided, however, that with regard to a possessor in bad faith, the court may, at the request of the person recovering the thing, grant a reasonable period of time for the same.
Article 391
If a third party acquirer of a mortgaged immovables has incurred necessary or beneficial expenses with respect to the mortgaged immovables, that third party may obtain reimbursement of the same out of the proceeds of the mortgaged immovables prior to other obligees, in accordance with the distinctions in Article 196..
